home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-04-27 | 97.4 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Apr 19 11:58:48 1994, modified Wed Apr 27 06:15:58 1994, creator 'HLX2', type 'ONLN', 96223 bytes "TE27-Inline Input & TEdit" , at 0x1785f 3201 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 19 54 45 32 37 2d 49 | 6e 6c 69 6e 65 20 49 6e |..TE27-I|nline In|
|00000010| 70 75 74 20 26 20 54 45 | 64 69 74 00 00 00 00 00 |put & TE|dit.....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 01 77 df 00 | 00 0c 81 a9 d9 b0 38 a9 |.....w..|......8.|
|00000060| e3 eb de 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e4 51 00 00 |........|.....Q..|
|00000080| 54 45 20 32 37 20 d0 20 | 49 6e 6c 69 6e 65 20 49 |TE 27 . |Inline I|
|00000090| 6e 70 75 74 20 66 6f 72 | 20 54 65 78 74 45 64 69 |nput for| TextEdi|
|000000a0| 74 20 77 69 74 68 20 54 | 53 4d 54 45 0d 54 65 78 |t with T|SMTE.Tex|
|000000b0| 74 0d 52 65 76 69 73 65 | 64 20 62 79 3a 09 4e 6f |t.Revise|d by:.No|
|000000c0| 72 62 65 72 74 20 4c 69 | 6e 64 65 6e 62 65 72 67 |rbert Li|ndenberg|
|000000d0| 09 4d 61 72 4b 65 69 73 | 75 6b 65 20 48 61 72 61 |.MarKeis|uke Hara|
|000000e0| 2c 20 4e 6f 62 75 68 69 | 72 6f 20 4d 69 79 61 74 |, Nobuhi|ro Miyat|
|000000f0| 61 6b 65 2c 09 44 65 63 | 65 6d 62 65 72 20 31 39 |ake,.Dec|ember 19|
|00000100| 39 33 0d 09 09 50 65 74 | 65 72 20 53 70 61 72 6b |93...Pet|er Spark|
|00000110| 73 2c 20 4e 6f 72 62 65 | 72 74 20 4c 69 6e 64 65 |s, Norbe|rt Linde|
|00000120| 6e 62 65 72 67 0d 54 68 | 69 73 20 54 65 63 68 6e |nberg.Th|is Techn|
|00000130| 69 63 61 6c 20 4e 6f 74 | 65 20 64 65 73 63 72 69 |ical Not|e descri|
|00000140| 62 65 73 20 54 53 4d 54 | 45 2c 20 61 6e 20 65 78 |bes TSMT|E, an ex|
|00000150| 74 65 6e 73 69 6f 6e 20 | 74 68 61 74 20 73 69 6d |tension |that sim|
|00000160| 70 6c 69 66 69 65 73 20 | 69 6d 70 6c 65 6d 65 6e |plifies |implemen|
|00000170| 74 61 74 69 6f 6e 20 6f | 66 20 69 6e 6c 69 6e 65 |tation o|f inline|
|00000180| 20 69 6e 70 75 74 20 66 | 6f 72 20 54 65 78 74 45 | input f|or TextE|
|00000190| 64 69 74 20 75 73 69 6e | 67 20 74 68 65 20 54 65 |dit usin|g the Te|
|000001a0| 78 74 20 53 65 72 76 69 | 63 65 73 20 4d 61 6e 61 |xt Servi|ces Mana|
|000001b0| 67 65 72 20 69 6e 20 53 | 79 73 74 65 6d 20 37 2e |ger in S|ystem 7.|
|000001c0| 31 20 61 6e 64 20 6c 61 | 74 65 72 2c 20 61 6e 64 |1 and la|ter, and|
|000001d0| 20 73 68 6f 77 73 20 79 | 6f 75 20 68 6f 77 20 74 | shows y|ou how t|
|000001e0| 6f 20 6d 61 6b 65 20 74 | 68 65 20 62 65 73 74 20 |o make t|he best |
|000001f0| 75 73 65 20 6f 66 20 69 | 74 2e 20 49 74 20 61 6c |use of i|t. It al|
|00000200| 73 6f 20 63 6f 6e 74 61 | 69 6e 73 20 73 6f 6d 65 |so conta|ins some|
|00000210| 20 61 64 76 69 63 65 20 | 66 6f 72 20 77 6f 72 6b | advice |for work|
|00000220| 69 6e 67 20 77 69 74 68 | 20 74 68 65 20 54 65 78 |ing with| the Tex|
|00000230| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|00000240| 65 72 20 74 68 61 74 20 | 61 70 70 6c 69 65 73 20 |er that |applies |
|00000250| 74 6f 20 61 6e 79 20 61 | 70 70 6c 69 63 61 74 69 |to any a|pplicati|
|00000260| 6f 6e 20 75 73 69 6e 67 | 20 54 53 4d 2c 20 6e 6f |on using| TSM, no|
|00000270| 74 20 6a 75 73 74 20 74 | 68 6f 73 65 20 75 73 69 |t just t|hose usi|
|00000280| 6e 67 20 54 53 4d 54 45 | 2e 0d 43 68 61 6e 67 65 |ng TSMTE|..Change|
|00000290| 73 20 73 69 6e 63 65 20 | 44 65 63 65 6d 62 65 72 |s since |December|
|000002a0| 20 31 39 39 33 3a 20 20 | 46 69 78 65 64 20 61 20 | 1993: |Fixed a |
|000002b0| 62 75 67 20 69 6e 20 74 | 68 65 20 49 6e 74 6c 54 |bug in t|he IntlT|
|000002c0| 53 4d 45 76 65 6e 74 20 | 72 6f 75 74 69 6e 65 20 |SMEvent |routine |
|000002d0| 74 68 61 74 20 63 6f 75 | 6c 64 20 6d 6f 64 69 66 |that cou|ld modif|
|000002e0| 79 20 74 68 65 20 57 69 | 6e 64 6f 77 20 4d 61 6e |y the Wi|ndow Man|
|000002f0| 61 67 65 72 20 70 6f 72 | 74 d5 73 20 66 6f 6e 74 |ager por|t.s font|
|00000300| 2c 20 61 6e 64 20 75 70 | 64 61 74 65 64 20 74 68 |, and up|dated th|
|00000310| 65 20 72 65 6c 61 74 65 | 64 20 69 6e 66 6f 72 6d |e relate|d inform|
|00000320| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 74 68 65 20 |ation ab|out the |
|00000330| 4a 61 70 61 6e 65 73 65 | 20 69 6e 70 75 74 20 6d |Japanese| input m|
|00000340| 65 74 68 6f 64 2e 20 41 | 64 64 65 64 20 73 65 63 |ethod. A|dded sec|
|00000350| 74 69 6f 6e 20 d2 49 6e | 70 75 74 20 4d 65 74 68 |tion .In|put Meth|
|00000360| 6f 64 73 20 4e 65 65 64 | 20 4e 75 6c 6c 20 45 76 |ods Need| Null Ev|
|00000370| 65 6e 74 73 d3 2e 20 43 | 6c 61 72 69 66 69 65 64 |ents.. C|larified|
|00000380| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|00000390| 20 61 62 6f 75 74 20 72 | 65 71 75 69 72 65 64 20 | about r|equired |
|000003a0| 73 75 70 70 6f 72 74 20 | 66 6f 72 20 41 70 70 6c |support |for Appl|
|000003b0| 65 20 65 76 65 6e 74 73 | 20 69 6e 20 74 68 65 20 |e events| in the |
|000003c0| 50 72 65 72 65 71 75 69 | 73 69 74 65 73 20 73 65 |Prerequi|sites se|
|000003d0| 63 74 69 6f 6e 2e 0d 54 | 6f 70 69 63 73 0d a5 20 |ction..T|opics.. |
|000003e0| 57 68 61 74 20 69 73 20 | 54 53 4d 54 45 0d a5 20 |What is |TSMTE.. |
|000003f0| 57 68 65 72 65 20 61 6e | 64 20 68 6f 77 20 69 73 |Where an|d how is|
|00000400| 20 54 53 4d 54 45 20 64 | 65 6c 69 76 65 72 65 64 | TSMTE d|elivered|
|00000410| 0d a5 20 48 6f 77 20 69 | 73 20 54 53 4d 54 45 20 |.. How i|s TSMTE |
|00000420| 75 73 65 64 20 69 6e 20 | 61 6e 20 61 70 70 6c 69 |used in |an appli|
|00000430| 63 61 74 69 6f 6e 0d a5 | 20 41 64 76 69 63 65 20 |cation..| Advice |
|00000440| 66 6f 72 20 77 6f 72 6b | 69 6e 67 20 77 69 74 68 |for work|ing with|
|00000450| 20 74 68 65 20 54 65 78 | 74 20 53 65 72 76 69 63 | the Tex|t Servic|
|00000460| 65 73 20 4d 61 6e 61 67 | 65 72 0d 49 6e 74 72 6f |es Manag|er.Intro|
|00000470| 64 75 63 74 69 6f 6e 0d | 53 79 73 74 65 6d 20 37 |duction.|System 7|
|00000480| 2e 31 20 69 6e 74 72 6f | 64 75 63 65 64 20 61 20 |.1 intro|duced a |
|00000490| 6e 65 77 20 54 6f 6f 6c | 62 6f 78 20 6d 61 6e 61 |new Tool|box mana|
|000004a0| 67 65 72 2c 20 74 68 65 | 20 54 65 78 74 20 53 65 |ger, the| Text Se|
|000004b0| 72 76 69 63 65 73 20 4d | 61 6e 61 67 65 72 2c 20 |rvices M|anager, |
|000004c0| 74 68 61 74 20 6d 61 6b | 65 73 20 69 74 20 65 61 |that mak|es it ea|
|000004d0| 73 69 65 72 20 66 6f 72 | 20 61 70 70 6c 69 63 61 |sier for| applica|
|000004e0| 74 69 6f 6e 73 20 74 6f | 20 70 72 6f 76 69 64 65 |tions to| provide|
|000004f0| 20 69 6e 6c 69 6e 65 20 | 69 6e 70 75 74 20 66 6f | inline |input fo|
|00000500| 72 20 32 2d 62 79 74 65 | 20 73 63 72 69 70 74 20 |r 2-byte| script |
|00000510| 73 79 73 74 65 6d 73 20 | 28 73 65 65 20 49 6e 73 |systems |(see Ins|
|00000520| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 3a 20 54 |ide Maci|ntosh: T|
|00000530| 65 78 74 2c 20 70 61 67 | 65 73 20 37 2d 36 20 74 |ext, pag|es 7-6 t|
|00000540| 6f 20 37 2d 31 32 2c 20 | 66 6f 72 20 61 6e 20 6f |o 7-12, |for an o|
|00000550| 76 65 72 76 69 65 77 29 | 2e 20 54 6f 20 69 6d 70 |verview)|. To imp|
|00000560| 6c 65 6d 65 6e 74 20 69 | 6e 6c 69 6e 65 20 69 6e |lement i|nline in|
|00000570| 70 75 74 20 75 73 69 6e | 67 20 74 68 65 20 54 65 |put usin|g the Te|
|00000580| 78 74 20 53 65 72 76 69 | 63 65 73 20 4d 61 6e 61 |xt Servi|ces Mana|
|00000590| 67 65 72 2c 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |ger, an |applicat|
|000005a0| 69 6f 6e 20 68 61 73 20 | 74 6f 20 64 6f 20 74 77 |ion has |to do tw|
|000005b0| 6f 20 74 68 69 6e 67 73 | 3a 20 6d 61 6b 65 20 73 |o things|: make s|
|000005c0| 6f 6d 65 20 63 61 6c 6c | 73 20 74 6f 20 74 68 65 |ome call|s to the|
|000005d0| 20 54 65 78 74 20 53 65 | 72 76 69 63 65 73 20 4d | Text Se|rvices M|
|000005e0| 61 6e 61 67 65 72 20 69 | 6e 20 74 68 65 20 72 69 |anager i|n the ri|
|000005f0| 67 68 74 20 70 6c 61 63 | 65 73 2c 20 61 6e 64 20 |ght plac|es, and |
|00000600| 70 72 6f 76 69 64 65 20 | 41 70 70 6c 65 20 65 76 |provide |Apple ev|
|00000610| 65 6e 74 20 68 61 6e 64 | 6c 65 72 73 20 74 68 61 |ent hand|lers tha|
|00000620| 74 20 72 65 73 70 6f 6e | 64 20 74 6f 20 65 76 65 |t respon|d to eve|
|00000630| 6e 74 73 20 66 72 6f 6d | 20 69 6e 70 75 74 20 6d |nts from| input m|
|00000640| 65 74 68 6f 64 73 20 62 | 79 20 75 70 64 61 74 69 |ethods b|y updati|
|00000650| 6e 67 20 74 65 78 74 20 | 64 61 74 61 20 73 74 72 |ng text |data str|
|00000660| 75 63 74 75 72 65 73 2c | 20 64 69 73 70 6c 61 79 |uctures,| display|
|00000670| 69 6e 67 20 74 65 78 74 | 2c 20 61 6e 64 20 74 72 |ing text|, and tr|
|00000680| 61 6e 73 6c 61 74 69 6e | 67 20 74 65 78 74 20 6f |anslatin|g text o|
|00000690| 66 66 73 65 74 73 20 61 | 6e 64 20 73 63 72 65 65 |ffsets a|nd scree|
|000006a0| 6e 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 2e 20 54 |n coordi|nates. T|
|000006b0| 68 65 20 66 69 72 73 74 | 20 70 61 72 74 20 69 73 |he first| part is|
|000006c0| 20 65 61 73 79 20 28 6d | 61 79 62 65 20 35 30 2d | easy (m|aybe 50-|
|000006d0| 31 30 30 20 6c 69 6e 65 | 73 20 6f 66 20 63 6f 64 |100 line|s of cod|
|000006e0| 65 29 2c 20 74 68 65 20 | 73 65 63 6f 6e 64 20 70 |e), the |second p|
|000006f0| 61 72 74 20 63 61 6e 2c | 20 64 65 70 65 6e 64 69 |art can,| dependi|
|00000700| 6e 67 20 6f 6e 20 74 68 | 65 20 63 6f 6d 70 6c 65 |ng on th|e comple|
|00000710| 78 69 74 79 20 6f 66 20 | 74 68 65 20 74 65 78 74 |xity of |the text|
|00000720| 20 65 6e 67 69 6e 65 20 | 74 68 61 74 20 79 6f 75 | engine |that you|
|00000730| 20 75 73 65 2c 20 72 65 | 71 75 69 72 65 20 73 75 | use, re|quire su|
|00000740| 62 73 74 61 6e 74 69 61 | 6c 20 77 6f 72 6b 20 28 |bstantia|l work (|
|00000750| 73 65 76 65 72 61 6c 20 | 68 75 6e 64 72 65 64 20 |several |hundred |
|00000760| 74 6f 20 74 68 6f 75 73 | 61 6e 64 73 20 6f 66 20 |to thous|ands of |
|00000770| 6c 69 6e 65 73 20 6f 66 | 20 63 6f 64 65 29 2e 0d |lines of| code)..|
|00000780| 54 53 4d 54 45 20 69 73 | 20 61 6e 20 65 78 74 65 |TSMTE is| an exte|
|00000790| 6e 73 69 6f 6e 20 74 6f | 20 74 68 65 20 54 65 78 |nsion to| the Tex|
|000007a0| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|000007b0| 65 72 20 74 68 61 74 20 | 64 6f 65 73 20 74 68 65 |er that |does the|
|000007c0| 20 73 65 63 6f 6e 64 20 | 70 61 72 74 20 6f 66 20 | second |part of |
|000007d0| 74 68 65 20 77 6f 72 6b | 20 66 6f 72 20 79 6f 75 |the work| for you|
|000007e0| 20 69 66 20 79 6f 75 20 | 75 73 65 20 54 65 78 74 | if you |use Text|
|000007f0| 45 64 69 74 2e 20 49 74 | 20 70 72 6f 76 69 64 65 |Edit. It| provide|
|00000800| 73 20 41 70 70 6c 65 20 | 65 76 65 6e 74 20 68 61 |s Apple |event ha|
|00000810| 6e 64 6c 65 72 73 20 74 | 68 61 74 20 68 61 6e 64 |ndlers t|hat hand|
|00000820| 6c 65 20 61 6c 6c 20 69 | 6e 74 65 72 61 63 74 69 |le all i|nteracti|
|00000830| 6f 6e 73 20 62 65 74 77 | 65 65 6e 20 61 6e 20 69 |ons betw|een an i|
|00000840| 6e 70 75 74 20 6d 65 74 | 68 6f 64 20 61 6e 64 20 |nput met|hod and |
|00000850| 54 65 78 74 45 64 69 74 | 2e 20 54 68 65 20 68 61 |TextEdit|. The ha|
|00000860| 6e 64 6c 65 72 73 20 61 | 72 65 20 6b 65 70 74 20 |ndlers a|re kept |
|00000870| 69 6e 20 74 68 65 20 73 | 79 73 74 65 6d 20 68 65 |in the s|ystem he|
|00000880| 61 70 2c 20 73 6f 20 74 | 68 65 79 20 61 72 65 20 |ap, so t|hey are |
|00000890| 73 68 61 72 65 64 20 62 | 65 74 77 65 65 6e 20 61 |shared b|etween a|
|000008a0| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 2e |ll appli|cations.|
|000008b0| 0d 54 53 4d 54 45 20 74 | 68 75 73 20 63 61 6e 20 |.TSMTE t|hus can |
|000008c0| 72 65 64 75 63 65 20 74 | 68 65 20 65 66 66 6f 72 |reduce t|he effor|
|000008d0| 74 20 6e 65 65 64 65 64 | 20 74 6f 20 69 6d 70 6c |t needed| to impl|
|000008e0| 65 6d 65 6e 74 20 69 6e | 6c 69 6e 65 20 69 6e 70 |ement in|line inp|
|000008f0| 75 74 20 74 6f 20 61 20 | 64 61 79 20 6f 72 20 74 |ut to a |day or t|
|00000900| 77 6f 2e 20 49 66 20 79 | 6f 75 20 75 73 65 20 54 |wo. If y|ou use T|
|00000910| 65 78 74 45 64 69 74 20 | 69 6e 20 64 6f 63 75 6d |extEdit |in docum|
|00000920| 65 6e 74 73 20 6f 72 20 | 6d 6f 64 65 6c 65 73 73 |ents or |modeless|
|00000930| 20 64 69 61 6c 6f 67 73 | 2c 20 79 6f 75 20 68 61 | dialogs|, you ha|
|00000940| 76 65 20 74 6f 20 6d 61 | 6b 65 20 61 20 66 65 77 |ve to ma|ke a few|
|00000950| 20 63 61 6c 6c 73 20 74 | 6f 20 54 53 4d 54 45 20 | calls t|o TSMTE |
|00000960| 69 6e 20 65 78 63 68 61 | 6e 67 65 20 66 6f 72 20 |in excha|nge for |
|00000970| 69 74 73 20 68 65 6c 70 | 3b 20 69 66 20 79 6f 75 |its help|; if you|
|00000980| 20 75 73 65 20 54 65 78 | 74 45 64 69 74 20 6f 6e | use Tex|tEdit on|
|00000990| 6c 79 20 69 6e 20 6d 6f | 64 61 6c 20 64 69 61 6c |ly in mo|dal dial|
|000009a0| 6f 67 73 2c 20 79 6f 75 | 20 6f 6e 6c 79 20 68 61 |ogs, you| only ha|
|000009b0| 76 65 20 74 6f 20 6d 6f | 64 69 66 79 20 74 68 65 |ve to mo|dify the|
|000009c0| 20 44 4c 4f 47 20 72 65 | 73 6f 75 72 63 65 73 20 | DLOG re|sources |
|000009d0| 74 68 61 74 20 64 65 66 | 69 6e 65 20 74 68 65 6d |that def|ine them|
|000009e0| 2e 0d 49 66 20 79 6f 75 | 20 75 73 65 20 61 20 74 |..If you| use a t|
|000009f0| 65 78 74 20 65 6e 67 69 | 6e 65 20 6f 74 68 65 72 |ext engi|ne other|
|00000a00| 20 74 68 61 6e 20 54 65 | 78 74 45 64 69 74 20 66 | than Te|xtEdit f|
|00000a10| 6f 72 20 65 64 69 74 69 | 6e 67 20 69 6e 20 79 6f |or editi|ng in yo|
|00000a20| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |ur appli|cation, |
|00000a30| 79 6f 75 20 63 61 6e 20 | 73 74 69 6c 6c 20 75 73 |you can |still us|
|00000a40| 65 20 54 53 4d 54 45 20 | 74 6f 20 68 61 6e 64 6c |e TSMTE |to handl|
|00000a50| 65 20 69 6e 6c 69 6e 65 | 20 69 6e 70 75 74 20 77 |e inline| input w|
|00000a60| 68 65 72 65 76 65 72 20 | 79 6f 75 20 75 73 65 20 |herever |you use |
|00000a70| 54 65 78 74 45 64 69 74 | 2c 20 65 2e 67 2e 2c 20 |TextEdit|, e.g., |
|00000a80| 69 6e 20 64 69 61 6c 6f | 67 73 2e 0d 4e 6f 74 65 |in dialo|gs..Note|
|00000a90| 3a 09 4b 61 6e 6a 69 54 | 61 6c 6b 20 36 2e 30 2e |:.KanjiT|alk 6.0.|
|00000aa0| 37 20 68 61 64 20 61 6e | 20 65 78 74 65 6e 73 69 |7 had an| extensi|
|00000ab0| 6f 6e 20 74 68 61 74 20 | 70 72 6f 76 69 64 65 64 |on that |provided|
|00000ac0| 20 66 75 6c 6c 79 20 61 | 75 74 6f 6d 61 74 69 63 | fully a|utomatic|
|00000ad0| 20 73 75 70 70 6f 72 74 | 20 66 6f 72 20 69 6e 6c | support| for inl|
|00000ae0| 69 6e 65 20 69 6e 70 75 | 74 20 77 69 74 68 20 54 |ine inpu|t with T|
|00000af0| 65 78 74 45 64 69 74 20 | 77 69 74 68 6f 75 74 20 |extEdit |without |
|00000b00| 61 6e 79 20 6b 69 6e 64 | 20 6f 66 20 6d 6f 64 69 |any kind| of modi|
|00000b10| 66 69 63 61 74 69 6f 6e | 20 74 6f 20 61 70 70 6c |fication| to appl|
|00000b20| 69 63 61 74 69 6f 6e 73 | 2e 20 57 69 74 68 20 54 |ications|. With T|
|00000b30| 53 4d 54 45 2c 20 69 6e | 6c 69 6e 65 20 69 6e 70 |SMTE, in|line inp|
|00000b40| 75 74 20 69 73 20 6e 6f | 74 20 71 75 69 74 65 20 |ut is no|t quite |
|00000b50| 73 6f 20 61 75 74 6f 6d | 61 74 69 63 20 d0 20 79 |so autom|atic . y|
|00000b60| 6f 75 20 68 61 76 65 20 | 74 6f 20 6d 61 6b 65 20 |ou have |to make |
|00000b70| 74 68 65 20 6e 65 63 65 | 73 73 61 72 79 20 63 61 |the nece|ssary ca|
|00000b80| 6c 6c 73 20 74 6f 20 54 | 53 4d 54 45 20 61 6e 64 |lls to T|SMTE and|
|00000b90| 20 74 68 65 20 54 65 78 | 74 20 53 65 72 76 69 63 | the Tex|t Servic|
|00000ba0| 65 73 20 4d 61 6e 61 67 | 65 72 20 74 6f 20 6d 61 |es Manag|er to ma|
|00000bb0| 6b 65 20 69 74 20 77 6f | 72 6b 2e 0d 4e 6f 74 65 |ke it wo|rk..Note|
|00000bc0| 3a 09 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |:.Inside| Macinto|
|00000bd0| 73 68 3a 20 54 65 78 74 | 2c 20 70 61 67 65 73 20 |sh: Text|, pages |
|00000be0| 32 2d 31 30 37 20 74 6f | 20 32 2d 31 30 39 2c 20 |2-107 to| 2-109, |
|00000bf0| 64 69 73 63 75 73 73 65 | 73 20 74 77 6f 20 66 65 |discusse|s two fe|
|00000c00| 61 74 75 72 65 20 62 69 | 74 73 2c 20 74 65 46 55 |ature bi|ts, teFU|
|00000c10| 73 65 54 65 78 74 53 65 | 72 76 69 63 65 73 20 61 |seTextSe|rvices a|
|00000c20| 6e 64 20 74 65 46 49 6e | 6c 69 6e 65 49 6e 70 75 |nd teFIn|lineInpu|
|00000c30| 74 2e 20 54 65 46 55 73 | 65 54 65 78 74 53 65 72 |t. TeFUs|eTextSer|
|00000c40| 76 69 63 65 73 20 64 6f | 65 73 6e d5 74 20 68 61 |vices do|esn.t ha|
|00000c50| 76 65 20 61 6e 79 20 69 | 6d 70 61 63 74 20 6f 6e |ve any i|mpact on|
|00000c60| 20 74 68 65 20 54 65 78 | 74 20 53 65 72 76 69 63 | the Tex|t Servic|
|00000c70| 65 73 20 4d 61 6e 61 67 | 65 72 20 6f 72 20 54 53 |es Manag|er or TS|
|00000c80| 4d 54 45 2c 20 73 6f 20 | 79 6f 75 20 63 61 6e 20 |MTE, so |you can |
|00000c90| 73 61 66 65 6c 79 20 69 | 67 6e 6f 72 65 20 69 74 |safely i|gnore it|
|00000ca0| 2e 20 54 65 46 49 6e 6c | 69 6e 65 49 6e 70 75 74 |. TeFInl|ineInput|
|00000cb0| 20 69 73 20 68 61 6e 64 | 6c 65 64 20 62 79 20 54 | is hand|led by T|
|00000cc0| 53 4d 54 45 2c 20 73 6f | 20 74 68 65 72 65 20 69 |SMTE, so| there i|
|00000cd0| 73 20 6e 6f 20 6e 65 65 | 64 20 66 6f 72 20 79 6f |s no nee|d for yo|
|00000ce0| 75 20 74 6f 20 74 6f 75 | 63 68 20 69 74 2e 0d 54 |u to tou|ch it..T|
|00000cf0| 53 4d 54 45 20 4f 76 65 | 72 76 69 65 77 0d 41 76 |SMTE Ove|rview.Av|
|00000d00| 61 69 6c 61 62 69 6c 69 | 74 79 0d 43 75 72 72 65 |ailabili|ty.Curre|
|00000d10| 6e 74 6c 79 2c 20 54 53 | 4d 54 45 20 69 73 20 64 |ntly, TS|MTE is d|
|00000d20| 65 6c 69 76 65 72 65 64 | 20 61 73 20 61 20 73 79 |elivered| as a sy|
|00000d30| 73 74 65 6d 20 65 78 74 | 65 6e 73 69 6f 6e 20 63 |stem ext|ension c|
|00000d40| 61 6c 6c 65 64 20 d2 49 | 6e 6c 69 6e 65 20 54 75 |alled .I|nline Tu|
|00000d50| 69 6b 61 20 4b 69 6e 6f | 75 d3 2c 20 77 68 69 63 |ika Kino|u., whic|
|00000d60| 68 20 69 73 20 73 68 6f | 77 6e 20 68 65 72 65 3a |h is sho|wn here:|
|00000d70| 0d 20 0d 46 69 67 75 72 | 65 20 31 d0 49 6e 6c 69 |. .Figur|e 1.Inli|
|00000d80| 6e 65 20 54 75 69 6b 61 | 20 4b 69 6e 6f 75 20 65 |ne Tuika| Kinou e|
|00000d90| 78 74 65 6e 73 69 6f 6e | 20 66 69 6c 65 0d 49 66 |xtension| file.If|
|00000da0| 20 79 6f 75 20 6c 6f 6f | 6b 20 66 6f 72 20 74 68 | you loo|k for th|
|00000db0| 69 73 20 66 69 6c 65 20 | 77 68 69 6c 65 20 72 75 |is file |while ru|
|00000dc0| 6e 6e 69 6e 67 20 73 79 | 73 74 65 6d 20 73 6f 66 |nning sy|stem sof|
|00000dd0| 74 77 61 72 65 20 69 6e | 20 73 6f 6d 65 20 6c 61 |tware in| some la|
|00000de0| 6e 67 75 61 67 65 20 75 | 73 69 6e 67 20 74 68 65 |nguage u|sing the|
|00000df0| 20 52 6f 6d 61 6e 20 73 | 63 72 69 70 74 20 73 79 | Roman s|cript sy|
|00000e00| 73 74 65 6d 2c 20 74 68 | 65 20 6e 61 6d 65 20 6f |stem, th|e name o|
|00000e10| 66 20 74 68 65 20 65 78 | 74 65 6e 73 69 6f 6e 20 |f the ex|tension |
|00000e20| 66 69 6c 65 20 77 69 6c | 6c 20 62 65 20 64 69 73 |file wil|l be dis|
|00000e30| 70 6c 61 79 65 64 20 61 | 73 20 d2 83 43 83 93 83 |played a|s ..C...|
|00000e40| 89 83 43 83 93 92 c7 89 | c1 8b 40 94 5c d3 2e 0d |..C.....|..@.\...|
|00000e50| 54 68 65 20 65 78 74 65 | 6e 73 69 6f 6e 20 69 73 |The exte|nsion is|
|00000e60| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 4a 61 70 | part of| the Jap|
|00000e70| 61 6e 65 73 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |anese ve|rsion of|
|00000e80| 20 53 79 73 74 65 6d 20 | 37 2e 31 2c 20 4b 61 6e | System |7.1, Kan|
|00000e90| 6a 69 54 61 6c 6b 20 37 | 2e 20 49 74 20 69 73 20 |jiTalk 7|. It is |
|00000ea0| 6e 6f 74 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 |not part| of the |
|00000eb0| 4a 61 70 61 6e 65 73 65 | 20 4c 61 6e 67 75 61 67 |Japanese| Languag|
|00000ec0| 65 20 4b 69 74 20 6f 72 | 20 6f 66 20 61 6e 79 20 |e Kit or| of any |
|00000ed0| 6f 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 6f 66 |other ve|rsion of|
|00000ee0| 20 53 79 73 74 65 6d 20 | 37 2e 31 2e 20 54 68 69 | System |7.1. Thi|
|00000ef0| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 69 66 20 |s means |that if |
|00000f00| 79 6f 75 20 75 73 65 20 | 54 53 4d 54 45 20 74 6f |you use |TSMTE to|
|00000f10| 20 69 6d 70 6c 65 6d 65 | 6e 74 20 69 6e 6c 69 6e | impleme|nt inlin|
|00000f20| 65 20 69 6e 70 75 74 2c | 20 69 74 20 77 69 6c 6c |e input,| it will|
|00000f30| 20 63 75 72 72 65 6e 74 | 6c 79 20 6f 6e 6c 79 20 | current|ly only |
|00000f40| 62 65 6e 65 66 69 74 20 | 75 73 65 72 73 20 6f 66 |benefit |users of|
|00000f50| 20 4a 61 70 61 6e 65 73 | 65 20 73 79 73 74 65 6d | Japanes|e system|
|00000f60| 20 73 6f 66 74 77 61 72 | 65 2e 20 48 6f 77 65 76 | softwar|e. Howev|
|00000f70| 65 72 2c 20 54 53 4d 54 | 45 20 6d 61 79 20 67 65 |er, TSMT|E may ge|
|00000f80| 74 20 72 6f 6c 6c 65 64 | 20 69 6e 74 6f 20 61 20 |t rolled| into a |
|00000f90| 66 75 74 75 72 65 20 76 | 65 72 73 69 6f 6e 20 6f |future v|ersion o|
|00000fa0| 66 20 74 68 65 20 62 61 | 73 65 20 73 79 73 74 65 |f the ba|se syste|
|00000fb0| 6d 20 73 6f 66 74 77 61 | 72 65 2c 20 73 6f 20 74 |m softwa|re, so t|
|00000fc0| 68 61 74 20 69 74 20 77 | 6f 75 6c 64 20 74 68 65 |hat it w|ould the|
|00000fd0| 6e 20 62 65 20 61 76 61 | 69 6c 61 62 6c 65 20 66 |n be ava|ilable f|
|00000fe0| 6f 72 20 75 73 65 20 77 | 69 74 68 20 61 6e 79 20 |or use w|ith any |
|00000ff0| 32 2d 62 79 74 65 20 73 | 63 72 69 70 74 20 73 79 |2-byte s|cript sy|
|00001000| 73 74 65 6d 20 6f 6e 20 | 61 6e 79 20 4d 61 63 69 |stem on |any Maci|
|00001010| 6e 74 6f 73 68 20 77 6f | 72 6c 64 77 69 64 65 2e |ntosh wo|rldwide.|
|00001020| 20 59 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | Your ap|plicatio|
|00001030| 6e 20 73 68 6f 75 6c 64 | 20 74 68 65 72 65 66 6f |n should| therefo|
|00001040| 72 65 20 75 73 65 20 47 | 65 73 74 61 6c 74 20 74 |re use G|estalt t|
|00001050| 6f 20 63 68 65 63 6b 20 | 66 6f 72 20 74 68 65 20 |o check |for the |
|00001060| 70 72 65 73 65 6e 63 65 | 20 6f 66 20 54 53 4d 54 |presence| of TSMT|
|00001070| 45 20 61 6e 64 20 75 73 | 65 20 69 74 20 77 68 65 |E and us|e it whe|
|00001080| 6e 65 76 65 72 20 69 74 | 20 69 73 20 61 76 61 69 |never it| is avai|
|00001090| 6c 61 62 6c 65 2e 0d 46 | 6f 72 20 64 65 76 65 6c |lable..F|or devel|
|000010a0| 6f 70 6d 65 6e 74 20 70 | 75 72 70 6f 73 65 73 2c |opment p|urposes,|
|000010b0| 20 69 66 20 79 6f 75 20 | 64 6f 6e d5 74 20 66 65 | if you |don.t fe|
|000010c0| 65 6c 20 63 6f 6d 66 6f | 72 74 61 62 6c 65 20 75 |el comfo|rtable u|
|000010d0| 73 69 6e 67 20 4a 61 70 | 61 6e 65 73 65 20 73 79 |sing Jap|anese sy|
|000010e0| 73 74 65 6d 20 73 6f 66 | 74 77 61 72 65 2c 20 79 |stem sof|tware, y|
|000010f0| 6f 75 20 63 61 6e 20 69 | 6e 73 74 61 6c 6c 20 74 |ou can i|nstall t|
|00001100| 68 65 20 4a 61 70 61 6e | 65 73 65 20 4c 61 6e 67 |he Japan|ese Lang|
|00001110| 75 61 67 65 20 4b 69 74 | 20 61 6e 64 20 74 68 65 |uage Kit| and the|
|00001120| 20 49 6e 6c 69 6e 65 20 | 54 75 69 6b 61 20 4b 69 | Inline |Tuika Ki|
|00001130| 6e 6f 75 20 65 78 74 65 | 6e 73 69 6f 6e 20 69 6e |nou exte|nsion in|
|00001140| 74 6f 20 73 79 73 74 65 | 6d 20 73 6f 66 74 77 61 |to syste|m softwa|
|00001150| 72 65 20 69 6e 20 61 6e | 79 20 6c 61 6e 67 75 61 |re in an|y langua|
|00001160| 67 65 20 74 68 61 74 20 | 79 6f 75 20 6c 69 6b 65 |ge that |you like|
|00001170| 2e 20 41 70 70 6c 65 20 | 64 6f 65 73 20 6e 6f 74 |. Apple |does not|
|00001180| 20 65 78 61 63 74 6c 79 | 20 67 75 61 72 61 6e 74 | exactly| guarant|
|00001190| 65 65 20 74 68 61 74 20 | 74 68 65 73 65 20 63 6f |ee that |these co|
|000011a0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 73 20 77 69 6c |nfigurat|ions wil|
|000011b0| 6c 20 77 6f 72 6b 2c 20 | 62 75 74 20 6f 75 72 20 |l work, |but our |
|000011c0| 65 78 70 65 72 69 65 6e | 63 65 20 73 6f 20 66 61 |experien|ce so fa|
|000011d0| 72 20 68 61 73 20 62 65 | 65 6e 20 67 6f 6f 64 2e |r has be|en good.|
|000011e0| 20 46 69 6e 61 6c 20 74 | 65 73 74 69 6e 67 20 73 | Final t|esting s|
|000011f0| 68 6f 75 6c 64 20 6f 66 | 20 63 6f 75 72 73 65 20 |hould of| course |
|00001200| 62 65 20 64 6f 6e 65 20 | 6f 6e 20 61 20 72 65 61 |be done |on a rea|
|00001210| 6c 20 4a 61 70 61 6e 65 | 73 65 20 73 79 73 74 65 |l Japane|se syste|
|00001220| 6d 2e 20 49 6e 20 6f 72 | 64 65 72 20 74 6f 20 67 |m. In or|der to g|
|00001230| 65 74 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |et your |applicat|
|00001240| 69 6f 6e 20 74 6f 20 75 | 73 65 20 61 20 4a 61 70 |ion to u|se a Jap|
|00001250| 61 6e 65 73 65 20 66 6f | 6e 74 20 69 6e 20 64 69 |anese fo|nt in di|
|00001260| 61 6c 6f 67 73 20 6f 72 | 20 69 6e 20 64 6f 63 75 |alogs or| in docu|
|00001270| 6d 65 6e 74 73 20 77 68 | 65 72 65 20 79 6f 75 20 |ments wh|ere you |
|00001280| 64 6f 6e d5 74 20 61 6c | 6c 6f 77 20 74 68 65 20 |don.t al|low the |
|00001290| 75 73 65 72 20 74 6f 20 | 73 65 6c 65 63 74 20 61 |user to |select a|
|000012a0| 20 66 6f 6e 74 2c 20 79 | 6f 75 20 68 61 76 65 20 | font, y|ou have |
|000012b0| 74 6f 20 72 65 67 69 73 | 74 65 72 20 79 6f 75 72 |to regis|ter your|
|000012c0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 61 73 20 | applica|tion as |
|000012d0| 4a 61 70 61 6e 65 73 65 | 20 75 73 69 6e 67 20 74 |Japanese| using t|
|000012e0| 68 65 20 4c 61 6e 67 75 | 61 67 65 20 52 65 67 69 |he Langu|age Regi|
|000012f0| 73 74 65 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ster app|lication|
|00001300| 20 74 68 61 74 20 63 6f | 6d 65 73 20 77 69 74 68 | that co|mes with|
|00001310| 20 74 68 65 20 4a 61 70 | 61 6e 65 73 65 20 4c 61 | the Jap|anese La|
|00001320| 6e 67 75 61 67 65 20 4b | 69 74 2e 0d 4c 69 6d 69 |nguage K|it..Limi|
|00001330| 74 61 74 69 6f 6e 73 0d | 59 6f 75 20 6d 61 79 20 |tations.|You may |
|00001340| 66 69 6e 64 20 74 68 61 | 74 20 77 69 74 68 20 73 |find tha|t with s|
|00001350| 6f 6d 65 20 66 6f 6e 74 | 73 20 54 53 4d 54 45 20 |ome font|s TSMTE |
|00001360| 74 72 75 6e 63 61 74 65 | 73 20 74 68 65 20 6c 6f |truncate|s the lo|
|00001370| 77 65 72 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 63 |wer port|ion of c|
|00001380| 68 61 72 61 63 74 65 72 | 73 20 64 72 61 77 6e 20 |haracter|s drawn |
|00001390| 69 6e 20 74 68 65 20 69 | 6e 70 75 74 20 61 72 65 |in the i|nput are|
|000013a0| 61 20 62 65 63 61 75 73 | 65 20 69 74 20 72 65 73 |a becaus|e it res|
|000013b0| 65 72 76 65 73 20 61 20 | 74 77 6f 2d 70 69 78 65 |erves a |two-pixe|
|000013c0| 6c 20 68 69 67 68 20 61 | 72 65 61 20 66 6f 72 20 |l high a|rea for |
|000013d0| 75 6e 64 65 72 6c 69 6e | 69 6e 67 2e 20 54 68 69 |underlin|ing. Thi|
|000013e0| 73 20 70 72 6f 62 6c 65 | 6d 20 77 69 6c 6c 20 62 |s proble|m will b|
|000013f0| 65 20 66 69 78 65 64 20 | 69 6e 20 61 20 66 75 74 |e fixed |in a fut|
|00001400| 75 72 65 20 72 65 6c 65 | 61 73 65 2e 0d 50 72 65 |ure rele|ase..Pre|
|00001410| 72 65 71 75 69 73 69 74 | 65 73 0d 54 6f 20 75 73 |requisit|es.To us|
|00001420| 65 20 74 68 65 20 54 65 | 78 74 20 53 65 72 76 69 |e the Te|xt Servi|
|00001430| 63 65 73 20 4d 61 6e 61 | 67 65 72 20 61 6e 64 20 |ces Mana|ger and |
|00001440| 54 53 4d 54 45 2c 20 79 | 6f 75 72 20 61 70 70 6c |TSMTE, y|our appl|
|00001450| 69 63 61 74 69 6f 6e 20 | 68 61 73 20 74 6f 20 73 |ication |has to s|
|00001460| 75 70 70 6f 72 74 20 41 | 70 70 6c 65 20 65 76 65 |upport A|pple eve|
|00001470| 6e 74 73 2e 20 41 74 20 | 61 20 6d 69 6e 69 6d 75 |nts. At |a minimu|
|00001480| 6d 2c 20 69 74 20 68 61 | 73 20 74 6f 20 69 6e 73 |m, it ha|s to ins|
|00001490| 74 61 6c 6c 20 61 74 20 | 6c 65 61 73 74 20 6f 6e |tall at |least on|
|000014a0| 65 20 41 70 70 6c 65 20 | 65 76 65 6e 74 20 68 61 |e Apple |event ha|
|000014b0| 6e 64 6c 65 72 20 75 73 | 69 6e 67 20 41 45 49 6e |ndler us|ing AEIn|
|000014c0| 73 74 61 6c 6c 45 76 65 | 6e 74 48 61 6e 64 6c 65 |stallEve|ntHandle|
|000014d0| 72 2e 20 55 73 75 61 6c | 6c 79 20 6f 66 20 63 6f |r. Usual|ly of co|
|000014e0| 75 72 73 65 20 79 6f 75 | 20 77 6f 75 6c 64 20 69 |urse you| would i|
|000014f0| 6e 73 74 61 6c 6c 20 68 | 61 6e 64 6c 65 72 73 20 |nstall h|andlers |
|00001500| 66 6f 72 20 74 68 65 20 | 66 6f 75 72 20 72 65 71 |for the |four req|
|00001510| 75 69 72 65 64 20 65 76 | 65 6e 74 20 74 79 70 65 |uired ev|ent type|
|00001520| 73 2c 20 61 6e 64 20 73 | 65 74 20 74 68 65 20 69 |s, and s|et the i|
|00001530| 73 48 69 67 68 4c 65 76 | 65 6c 45 76 65 6e 74 41 |sHighLev|elEventA|
|00001540| 77 61 72 65 20 62 69 74 | 20 69 6e 20 74 68 65 20 |ware bit| in the |
|00001550| 53 49 5a 45 20 2d 31 20 | 72 65 73 6f 75 72 63 65 |SIZE -1 |resource|
|00001560| 2e 0d 4e 6f 74 65 3a 09 | 54 68 65 20 53 49 5a 45 |..Note:.|The SIZE|
|00001570| 20 72 65 73 6f 75 72 63 | 65 20 61 6c 73 6f 20 68 | resourc|e also h|
|00001580| 61 73 20 61 20 75 73 65 | 54 65 78 74 45 64 69 74 |as a use|TextEdit|
|00001590| 53 65 72 76 69 63 65 73 | 20 62 69 74 2e 20 43 6f |Services| bit. Co|
|000015a0| 6e 74 72 61 72 79 20 74 | 6f 20 74 68 65 20 63 6f |ntrary t|o the co|
|000015b0| 6d 6d 65 6e 74 73 20 69 | 6e 20 54 79 70 65 73 2e |mments i|n Types.|
|000015c0| 72 20 61 6e 64 20 69 6e | 20 49 6e 73 69 64 65 20 |r and in| Inside |
|000015d0| 4d 61 63 69 6e 74 6f 73 | 68 3a 20 54 65 78 74 2c |Macintos|h: Text,|
|000015e0| 20 74 68 69 73 20 62 69 | 74 20 64 6f 65 73 6e d5 | this bi|t doesn.|
|000015f0| 74 20 68 61 76 65 20 61 | 6e 79 20 69 6e 66 6c 75 |t have a|ny influ|
|00001600| 65 6e 63 65 20 6f 6e 20 | 69 6e 6c 69 6e 65 20 69 |ence on |inline i|
|00001610| 6e 70 75 74 20 64 6f 6e | 65 20 77 69 74 68 20 74 |nput don|e with t|
|00001620| 68 65 20 54 65 78 74 20 | 53 65 72 76 69 63 65 73 |he Text |Services|
|00001630| 20 4d 61 6e 61 67 65 72 | 20 61 6e 64 20 54 53 4d | Manager| and TSM|
|00001640| 54 45 2e 20 49 74 20 77 | 61 73 20 75 73 65 64 20 |TE. It w|as used |
|00001650| 62 79 20 74 68 65 20 65 | 78 74 65 6e 73 69 6f 6e |by the e|xtension|
|00001660| 20 74 68 61 74 20 70 72 | 6f 76 69 64 65 64 20 69 | that pr|ovided i|
|00001670| 6e 6c 69 6e 65 20 69 6e | 70 75 74 20 66 6f 72 20 |nline in|put for |
|00001680| 54 65 78 74 45 64 69 74 | 20 69 6e 20 4b 61 6e 6a |TextEdit| in Kanj|
|00001690| 69 54 61 6c 6b 20 36 2e | 30 2e 37 2e 0d 50 72 65 |iTalk 6.|0.7..Pre|
|000016a0| 70 61 72 69 6e 67 20 74 | 6f 20 55 73 65 20 54 53 |paring t|o Use TS|
|000016b0| 4d 54 45 0d 53 74 61 72 | 74 69 6e 67 20 66 72 6f |MTE.Star|ting fro|
|000016c0| 6d 20 74 68 69 73 20 73 | 65 63 74 69 6f 6e 2c 20 |m this s|ection, |
|000016d0| 77 65 20 61 73 73 75 6d | 65 20 74 68 61 74 20 79 |we assum|e that y|
|000016e0| 6f 75 20 68 61 76 65 20 | 61 20 67 6f 6f 64 20 75 |ou have |a good u|
|000016f0| 6e 64 65 72 73 74 61 6e | 64 69 6e 67 20 6f 66 20 |nderstan|ding of |
|00001700| 74 68 65 20 68 69 67 68 | 2d 6c 65 76 65 6c 20 72 |the high|-level r|
|00001710| 6f 75 74 69 6e 65 73 20 | 6f 66 20 74 68 65 20 54 |outines |of the T|
|00001720| 65 78 74 20 53 65 72 76 | 69 63 65 73 20 4d 61 6e |ext Serv|ices Man|
|00001730| 61 67 65 72 2e 20 59 6f | 75 20 63 61 6e 20 66 69 |ager. Yo|u can fi|
|00001740| 6e 64 20 74 68 65 20 6e | 65 63 65 73 73 61 72 79 |nd the n|ecessary|
|00001750| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 6e 20 | informa|tion in |
|00001760| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00001770| 3a 20 54 65 78 74 2c 20 | 70 61 67 65 73 20 37 2d |: Text, |pages 7-|
|00001780| 31 37 20 74 6f 20 37 2d | 32 34 2e 20 50 6c 65 61 |17 to 7-|24. Plea|
|00001790| 73 65 20 6d 61 6b 65 20 | 73 75 72 65 20 74 6f 20 |se make |sure to |
|000017a0| 72 65 61 64 20 74 68 65 | 20 73 65 63 74 69 6f 6e |read the| section|
|000017b0| 20 d2 4d 6f 72 65 20 49 | 6e 6c 69 6e 65 20 49 6e | .More I|nline In|
|000017c0| 70 75 74 20 41 64 76 69 | 63 65 d3 20 61 74 20 74 |put Advi|ce. at t|
|000017d0| 68 65 20 65 6e 64 20 6f | 66 20 74 68 69 73 20 54 |he end o|f this T|
|000017e0| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 66 6f |echnical| Note fo|
|000017f0| 72 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 68 69 6e |r additi|onal hin|
|00001800| 74 73 20 6f 6e 20 68 6f | 77 20 74 6f 20 73 75 63 |ts on ho|w to suc|
|00001810| 63 65 73 73 66 75 6c 6c | 79 20 75 73 65 20 74 68 |cessfull|y use th|
|00001820| 65 20 54 65 78 74 20 53 | 65 72 76 69 63 65 73 20 |e Text S|ervices |
|00001830| 4d 61 6e 61 67 65 72 20 | 61 6e 64 20 69 6e 70 75 |Manager |and inpu|
|00001840| 74 20 6d 65 74 68 6f 64 | 73 2e 0d 44 65 66 69 6e |t method|s..Defin|
|00001850| 69 6e 67 20 74 68 65 20 | 4c 65 76 65 6c 20 6f 66 |ing the |Level of|
|00001860| 20 46 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 59 | Functio|nality Y|
|00001870| 6f 75 20 4e 65 65 64 0d | 59 6f 75 72 20 61 70 70 |ou Need.|Your app|
|00001880| 6c 69 63 61 74 69 6f 6e | 20 63 61 6e 20 70 72 6f |lication| can pro|
|00001890| 76 69 64 65 20 73 65 76 | 65 72 61 6c 20 64 69 66 |vide sev|eral dif|
|000018a0| 66 65 72 65 6e 74 20 6b | 69 6e 64 73 20 6f 66 20 |ferent k|inds of |
|000018b0| 74 65 78 74 20 65 64 69 | 74 69 6e 67 20 66 75 6e |text edi|ting fun|
|000018c0| 63 74 69 6f 6e 61 6c 69 | 74 79 2c 20 61 6e 64 20 |ctionali|ty, and |
|000018d0| 79 6f 75 72 20 75 73 61 | 67 65 20 6f 66 20 54 53 |your usa|ge of TS|
|000018e0| 4d 54 45 20 61 6e 64 20 | 74 68 65 20 54 65 78 74 |MTE and |the Text|
|000018f0| 20 53 65 72 76 69 63 65 | 73 20 4d 61 6e 61 67 65 | Service|s Manage|
|00001900| 72 20 64 65 70 65 6e 64 | 73 20 6f 6e 20 77 68 69 |r depend|s on whi|
|00001910| 63 68 20 6f 6e 65 20 79 | 6f 75 20 6f 66 66 65 72 |ch one y|ou offer|
|00001920| 2e 20 59 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |. Your a|pplicati|
|00001930| 6f 6e 20 6d 61 79 20 73 | 75 70 70 6f 72 74 20 74 |on may s|upport t|
|00001940| 65 78 74 20 69 6e 70 75 | 74 3a 0d 31 29 09 69 6e |ext inpu|t:.1).in|
|00001950| 20 6d 6f 64 61 6c 20 64 | 69 61 6c 6f 67 73 20 28 | modal d|ialogs (|
|00001960| 77 68 69 63 68 20 75 73 | 65 20 54 65 78 74 45 64 |which us|e TextEd|
|00001970| 69 74 29 0d 32 29 09 69 | 6e 20 64 6f 63 75 6d 65 |it).2).i|n docume|
|00001980| 6e 74 20 77 69 6e 64 6f | 77 73 20 75 73 69 6e 67 |nt windo|ws using|
|00001990| 20 54 65 78 74 45 64 69 | 74 20 61 6e 64 20 69 6e | TextEdi|t and in|
|000019a0| 20 6d 6f 64 65 6c 65 73 | 73 20 64 69 61 6c 6f 67 | modeles|s dialog|
|000019b0| 73 0d 33 29 09 69 6e 20 | 77 69 6e 64 6f 77 73 20 |s.3).in |windows |
|000019c0| 75 73 69 6e 67 20 79 6f | 75 72 20 6f 77 6e 20 74 |using yo|ur own t|
|000019d0| 65 78 74 20 65 6e 67 69 | 6e 65 0d 70 6c 75 73 20 |ext engi|ne.plus |
|000019e0| 69 6e 20 61 6e 79 20 63 | 6f 6d 62 69 6e 61 74 69 |in any c|ombinati|
|000019f0| 6f 6e 20 74 68 65 72 65 | 6f 66 2e 0d 54 68 65 20 |on there|of..The |
|00001a00| 72 65 73 74 20 6f 66 20 | 74 68 69 73 20 73 65 63 |rest of |this sec|
|00001a10| 74 69 6f 6e 20 64 69 73 | 63 75 73 73 65 73 20 74 |tion dis|cusses t|
|00001a20| 68 65 20 73 74 65 70 73 | 20 79 6f 75 20 68 61 76 |he steps| you hav|
|00001a30| 65 20 74 6f 20 74 61 6b | 65 20 74 6f 20 70 72 65 |e to tak|e to pre|
|00001a40| 70 61 72 65 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |pare you|r applic|
|00001a50| 61 74 69 6f 6e 20 74 6f | 20 75 73 65 20 54 53 4d |ation to| use TSM|
|00001a60| 54 45 20 69 6e 20 61 6e | 79 20 70 6f 73 73 69 62 |TE in an|y possib|
|00001a70| 6c 65 20 63 6f 6e 74 65 | 78 74 2e 20 54 68 65 20 |le conte|xt. The |
|00001a80| 66 6f 6c 6c 6f 77 69 6e | 67 20 73 65 63 74 69 6f |followin|g sectio|
|00001a90| 6e 73 20 74 68 65 6e 20 | 6c 6f 6f 6b 20 61 74 20 |ns then |look at |
|00001aa0| 74 68 65 20 69 6e 64 69 | 76 69 64 75 61 6c 20 63 |the indi|vidual c|
|00001ab0| 61 73 65 73 2e 0d 54 65 | 73 74 69 6e 67 20 66 6f |ases..Te|sting fo|
|00001ac0| 72 20 54 53 4d 54 45 0d | 42 65 66 6f 72 65 20 6d |r TSMTE.|Before m|
|00001ad0| 61 6b 69 6e 67 20 63 61 | 6c 6c 73 20 66 6f 72 20 |aking ca|lls for |
|00001ae0| 54 53 4d 54 45 2c 20 79 | 6f 75 20 68 61 76 65 20 |TSMTE, y|ou have |
|00001af0| 74 6f 20 63 68 65 63 6b | 20 66 6f 72 20 69 74 73 |to check| for its|
|00001b00| 20 70 72 65 73 65 6e 63 | 65 20 75 73 69 6e 67 20 | presenc|e using |
|00001b10| 47 65 73 74 61 6c 74 2e | 20 54 68 65 20 73 65 6c |Gestalt.| The sel|
|00001b20| 65 63 74 6f 72 20 66 6f | 72 20 54 53 4d 54 45 20 |ector fo|r TSMTE |
|00001b30| 69 73 20 67 65 73 74 61 | 6c 74 54 53 4d 54 45 41 |is gesta|ltTSMTEA|
|00001b40| 74 74 72 2c 20 61 6e 64 | 20 79 6f 75 20 6b 6e 6f |ttr, and| you kno|
|00001b50| 77 20 74 68 61 74 20 69 | 74 20 69 73 20 61 76 61 |w that i|t is ava|
|00001b60| 69 6c 61 62 6c 65 20 69 | 66 20 74 68 65 20 67 65 |ilable i|f the ge|
|00001b70| 73 74 61 6c 74 54 53 4d | 54 45 50 72 65 73 65 6e |staltTSM|TEPresen|
|00001b80| 74 20 62 69 74 20 69 6e | 20 74 68 65 20 72 65 73 |t bit in| the res|
|00001b90| 70 6f 6e 73 65 20 69 73 | 20 73 65 74 2e 0d 54 68 |ponse is| set..Th|
|00001ba0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 6f 64 65 |e follow|ing code|
|00001bb0| 20 69 6e 69 74 69 61 6c | 69 7a 65 73 20 73 65 70 | initial|izes sep|
|00001bc0| 61 72 61 74 65 20 42 6f | 6f 6c 65 61 6e 20 76 61 |arate Bo|olean va|
|00001bd0| 72 69 61 62 6c 65 73 20 | 74 6f 20 69 6e 64 69 63 |riables |to indic|
|00001be0| 61 74 65 20 74 68 65 20 | 70 72 65 73 65 6e 63 65 |ate the |presence|
|00001bf0| 20 6f 66 20 74 68 65 20 | 54 65 78 74 20 53 65 72 | of the |Text Ser|
|00001c00| 76 69 63 65 73 20 4d 61 | 6e 61 67 65 72 20 61 6e |vices Ma|nager an|
|00001c10| 64 20 54 53 4d 54 45 2e | 20 48 61 76 69 6e 67 20 |d TSMTE.| Having |
|00001c20| 73 65 70 61 72 61 74 65 | 20 76 61 72 69 61 62 6c |separate| variabl|
|00001c30| 65 73 20 69 73 20 75 73 | 65 66 75 6c 20 69 66 20 |es is us|eful if |
|00001c40| 79 6f 75 20 75 73 65 20 | 79 6f 75 72 20 6f 77 6e |you use |your own|
|00001c50| 20 74 65 78 74 20 65 6e | 67 69 6e 65 20 69 6e 20 | text en|gine in |
|00001c60| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 54 65 78 74 |addition| to Text|
|00001c70| 45 64 69 74 20 61 6e 64 | 20 77 61 6e 74 20 74 6f |Edit and| want to|
|00001c80| 20 73 75 70 70 6f 72 74 | 20 69 6e 6c 69 6e 65 20 | support| inline |
|00001c90| 69 6e 70 75 74 20 66 6f | 72 20 74 68 61 74 20 65 |input fo|r that e|
|00001ca0| 6e 67 69 6e 65 20 65 76 | 65 6e 20 69 66 20 54 53 |ngine ev|en if TS|
|00001cb0| 4d 54 45 20 69 73 20 6e | 6f 74 20 70 72 65 73 65 |MTE is n|ot prese|
|00001cc0| 6e 74 2e 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 |nt..stat|ic void |
|00001cd0| 43 68 65 63 6b 46 6f 72 | 54 65 78 74 53 65 72 76 |CheckFor|TextServ|
|00001ce0| 69 63 65 73 28 76 6f 69 | 64 29 0d 7b 0d 09 6c 6f |ices(voi|d).{..lo|
|00001cf0| 6e 67 20 67 65 73 74 61 | 6c 74 52 65 73 70 6f 6e |ng gesta|ltRespon|
|00001d00| 73 65 3b 0d 09 0d 09 67 | 48 61 73 54 65 78 74 53 |se;....g|HasTextS|
|00001d10| 65 72 76 69 63 65 73 20 | 3d 20 66 61 6c 73 65 3b |ervices |= false;|
|00001d20| 09 09 2f 2f 20 75 6e 6c | 65 73 73 20 70 72 6f 76 |..// unl|ess prov|
|00001d30| 65 6e 20 6f 74 68 65 72 | 77 69 73 65 0d 09 67 48 |en other|wise..gH|
|00001d40| 61 73 54 53 4d 54 45 20 | 3d 20 66 61 6c 73 65 3b |asTSMTE |= false;|
|00001d50| 09 09 09 2f 2f 20 75 6e | 6c 65 73 73 20 70 72 6f |...// un|less pro|
|00001d60| 76 65 6e 20 6f 74 68 65 | 72 77 69 73 65 0d 09 0d |ven othe|rwise...|
|00001d70| 09 69 66 20 28 54 72 61 | 70 41 76 61 69 6c 61 62 |.if (Tra|pAvailab|
|00001d80| 6c 65 28 5f 47 65 73 74 | 61 6c 74 29 29 0d 09 7b |le(_Gest|alt))..{|
|00001d90| 0d 09 09 69 66 20 28 28 | 47 65 73 74 61 6c 74 28 |...if ((|Gestalt(|
|00001da0| 67 65 73 74 61 6c 74 54 | 53 4d 67 72 56 65 72 73 |gestaltT|SMgrVers|
|00001db0| 69 6f 6e 2c 20 26 67 65 | 73 74 61 6c 74 52 65 73 |ion, &ge|staltRes|
|00001dc0| 70 6f 6e 73 65 29 20 3d | 3d 20 6e 6f 45 72 72 29 |ponse) =|= noErr)|
|00001dd0| 20 26 26 0d 09 09 09 20 | 28 67 65 73 74 61 6c 74 | &&.... |(gestalt|
|00001de0| 52 65 73 70 6f 6e 73 65 | 20 3e 3d 20 31 29 29 0d |Response| >= 1)).|
|00001df0| 09 09 7b 0d 09 09 09 67 | 48 61 73 54 65 78 74 53 |..{....g|HasTextS|
|00001e00| 65 72 76 69 63 65 73 20 | 3d 20 74 72 75 65 3b 0d |ervices |= true;.|
|00001e10| 09 09 09 69 66 20 28 47 | 65 73 74 61 6c 74 28 67 |...if (G|estalt(g|
|00001e20| 65 73 74 61 6c 74 54 53 | 4d 54 45 41 74 74 72 2c |estaltTS|MTEAttr,|
|00001e30| 20 26 67 65 73 74 61 6c | 74 52 65 73 70 6f 6e 73 | &gestal|tRespons|
|00001e40| 65 29 20 3d 3d 20 6e 6f | 45 72 72 29 0d 09 09 09 |e) == no|Err)....|
|00001e50| 09 67 48 61 73 54 53 4d | 54 45 20 3d 20 42 54 73 |.gHasTSM|TE = BTs|
|00001e60| 74 28 67 65 73 74 61 6c | 74 52 65 73 70 6f 6e 73 |t(gestal|tRespons|
|00001e70| 65 2c 20 67 65 73 74 61 | 6c 74 54 53 4d 54 45 50 |e, gesta|ltTSMTEP|
|00001e80| 72 65 73 65 6e 74 29 3b | 0d 09 09 7d 3b 0d 09 7d |resent);|...};..}|
|00001e90| 3b 0d 7d 0d 49 6e 69 74 | 69 61 6c 69 7a 69 6e 67 |;.}.Init|ializing|
|00001ea0| 20 61 6e 64 20 43 6c 6f | 73 69 6e 67 20 74 68 65 | and Clo|sing the|
|00001eb0| 20 54 65 78 74 20 53 65 | 72 76 69 63 65 73 20 4d | Text Se|rvices M|
|00001ec0| 61 6e 61 67 65 72 0d 54 | 6f 20 65 6e 61 62 6c 65 |anager.T|o enable|
|00001ed0| 20 69 6e 6c 69 6e 65 20 | 69 6e 70 75 74 2c 20 79 | inline |input, y|
|00001ee0| 6f 75 20 68 61 76 65 20 | 74 6f 20 69 6e 69 74 69 |ou have |to initi|
|00001ef0| 61 6c 69 7a 65 20 74 68 | 65 20 54 65 78 74 20 53 |alize th|e Text S|
|00001f00| 65 72 76 69 63 65 73 20 | 4d 61 6e 61 67 65 72 20 |ervices |Manager |
|00001f10| 62 79 20 63 61 6c 6c 69 | 6e 67 20 49 6e 69 74 54 |by calli|ng InitT|
|00001f20| 53 4d 41 77 61 72 65 41 | 70 70 6c 69 63 61 74 69 |SMAwareA|pplicati|
|00001f30| 6f 6e 20 69 6e 20 79 6f | 75 72 20 69 6e 69 74 69 |on in yo|ur initi|
|00001f40| 61 6c 69 7a 61 74 69 6f | 6e 20 73 65 71 75 65 6e |alizatio|n sequen|
|00001f50| 63 65 2c 20 61 6e 64 20 | 63 6c 6f 73 65 20 69 74 |ce, and |close it|
|00001f60| 20 62 65 66 6f 72 65 20 | 71 75 69 74 74 69 6e 67 | before |quitting|
|00001f70| 20 62 79 20 63 61 6c 6c | 69 6e 67 20 43 6c 6f 73 | by call|ing Clos|
|00001f80| 65 54 53 4d 41 77 61 72 | 65 41 70 70 6c 69 63 61 |eTSMAwar|eApplica|
|00001f90| 74 69 6f 6e 2e 20 42 75 | 74 20 77 68 61 74 20 69 |tion. Bu|t what i|
|00001fa0| 66 20 54 53 4d 54 45 20 | 69 73 20 6e 6f 74 20 61 |f TSMTE |is not a|
|00001fb0| 76 61 69 6c 61 62 6c 65 | 3f 20 54 68 65 6e 20 79 |vailable|? Then y|
|00001fc0| 6f 75 20 68 61 76 65 20 | 74 6f 20 6d 61 6b 65 20 |ou have |to make |
|00001fd0| 74 68 65 20 66 6c 6f 61 | 74 69 6e 67 20 69 6e 70 |the floa|ting inp|
|00001fe0| 75 74 20 77 69 6e 64 6f | 77 20 61 76 61 69 6c 61 |ut windo|w availa|
|00001ff0| 62 6c 65 20 74 6f 20 74 | 68 65 20 75 73 65 72 20 |ble to t|he user |
|00002000| 66 6f 72 20 65 6e 74 65 | 72 69 6e 67 20 74 65 78 |for ente|ring tex|
|00002010| 74 20 69 6e 20 61 20 32 | 2d 62 79 74 65 20 73 63 |t in a 2|-byte sc|
|00002020| 72 69 70 74 20 69 6e 74 | 6f 20 61 20 54 65 78 74 |ript int|o a Text|
|00002030| 45 64 69 74 20 66 69 65 | 6c 64 2e 20 48 6f 77 20 |Edit fie|ld. How |
|00002040| 74 6f 20 64 6f 20 74 68 | 69 73 20 64 65 70 65 6e |to do th|is depen|
|00002050| 64 73 20 6f 6e 20 77 68 | 65 74 68 65 72 20 79 6f |ds on wh|ether yo|
|00002060| 75 20 75 73 65 20 79 6f | 75 72 20 6f 77 6e 20 74 |u use yo|ur own t|
|00002070| 65 78 74 20 65 6e 67 69 | 6e 65 20 69 6e 20 61 64 |ext engi|ne in ad|
|00002080| 64 69 74 69 6f 6e 20 74 | 6f 20 54 65 78 74 45 64 |dition t|o TextEd|
|00002090| 69 74 20 28 77 65 20 61 | 73 73 75 6d 65 20 74 68 |it (we a|ssume th|
|000020a0| 61 74 20 79 6f 75 72 20 | 6f 77 6e 20 74 65 78 74 |at your |own text|
|000020b0| 20 65 6e 67 69 6e 65 20 | 73 75 70 70 6f 72 74 73 | engine |supports|
|000020c0| 20 69 6e 6c 69 6e 65 20 | 69 6e 70 75 74 20 d0 20 | inline |input . |
|000020d0| 6f 74 68 65 72 77 69 73 | 65 20 79 6f 75 20 70 72 |otherwis|e you pr|
|000020e0| 6f 62 61 62 6c 79 20 77 | 6f 75 6c 64 20 6e 6f 74 |obably w|ould not|
|000020f0| 20 74 68 69 6e 6b 20 61 | 62 6f 75 74 20 61 64 64 | think a|bout add|
|00002100| 69 6e 67 20 69 6e 6c 69 | 6e 65 20 69 6e 70 75 74 |ing inli|ne input|
|00002110| 20 73 75 70 70 6f 72 74 | 20 74 6f 20 54 65 78 74 | support| to Text|
|00002120| 45 64 69 74 29 2e 0d 49 | 66 20 79 6f 75 20 6f 6e |Edit)..I|f you on|
|00002130| 6c 79 20 75 73 65 20 54 | 65 78 74 45 64 69 74 20 |ly use T|extEdit |
|00002140| 69 6e 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |in your |applicat|
|00002150| 69 6f 6e 2c 20 79 6f 75 | 20 73 69 6d 70 6c 79 20 |ion, you| simply |
|00002160| 63 61 6c 6c 20 49 6e 69 | 74 54 53 4d 41 77 61 72 |call Ini|tTSMAwar|
|00002170| 65 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 6f 6e 6c |eApplica|tion onl|
|00002180| 79 20 69 66 20 54 53 4d | 54 45 20 69 73 20 61 76 |y if TSM|TE is av|
|00002190| 61 69 6c 61 62 6c 65 2e | 20 49 66 20 79 6f 75 20 |ailable.| If you |
|000021a0| 64 6f 6e d5 74 20 63 61 | 6c 6c 20 49 6e 69 74 54 |don.t ca|ll InitT|
|000021b0| 53 4d 41 77 61 72 65 41 | 70 70 6c 69 63 61 74 69 |SMAwareA|pplicati|
|000021c0| 6f 6e 2c 20 73 79 73 74 | 65 6d 20 73 6f 66 74 77 |on, syst|em softw|
|000021d0| 61 72 65 20 77 69 6c 6c | 20 61 75 74 6f 6d 61 74 |are will| automat|
|000021e0| 69 63 61 6c 6c 79 20 68 | 61 6e 64 6c 65 20 69 6e |ically h|andle in|
|000021f0| 70 75 74 20 69 6e 20 32 | 2d 62 79 74 65 20 73 63 |put in 2|-byte sc|
|00002200| 72 69 70 74 73 20 66 6f | 72 20 79 6f 75 72 20 61 |ripts fo|r your a|
|00002210| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 6e 20 61 20 |pplicati|on in a |
|00002220| 66 6c 6f 61 74 69 6e 67 | 20 69 6e 70 75 74 20 77 |floating| input w|
|00002230| 69 6e 64 6f 77 2e 20 54 | 68 65 20 66 6f 6c 6c 6f |indow. T|he follo|
|00002240| 77 69 6e 67 20 63 6f 64 | 65 20 70 65 72 66 6f 72 |wing cod|e perfor|
|00002250| 6d 73 20 74 68 65 20 69 | 6e 69 74 69 61 6c 69 7a |ms the i|nitializ|
|00002260| 61 74 69 6f 6e 20 61 6e | 64 20 61 6c 73 6f 20 73 |ation an|d also s|
|00002270| 68 6f 77 73 20 68 6f 77 | 20 74 6f 20 6d 6f 76 65 |hows how| to move|
|00002280| 20 6f 6e 20 77 69 74 68 | 6f 75 74 20 74 65 78 74 | on with|out text|
|00002290| 20 73 65 72 76 69 63 65 | 73 20 69 66 20 49 6e 69 | service|s if Ini|
|000022a0| 74 54 53 4d 41 77 61 72 | 65 41 70 70 6c 69 63 61 |tTSMAwar|eApplica|
|000022b0| 74 69 6f 6e 20 66 61 69 | 6c 73 3a 0d 69 66 20 28 |tion fai|ls:.if (|
|000022c0| 21 28 67 48 61 73 54 53 | 4d 54 45 20 26 26 20 49 |!(gHasTS|MTE && I|
|000022d0| 6e 69 74 54 53 4d 41 77 | 61 72 65 41 70 70 6c 69 |nitTSMAw|areAppli|
|000022e0| 63 61 74 69 6f 6e 28 29 | 20 3d 3d 20 6e 6f 45 72 |cation()| == noEr|
|000022f0| 72 29 29 0d 7b 0d 09 2f | 2f 20 69 66 20 74 68 69 |r)).{../|/ if thi|
|00002300| 73 20 68 61 70 70 65 6e | 73 2c 20 6a 75 73 74 20 |s happen|s, just |
|00002310| 6d 6f 76 65 20 6f 6e 20 | 77 69 74 68 6f 75 74 20 |move on |without |
|00002320| 74 65 78 74 20 73 65 72 | 76 69 63 65 73 0d 09 67 |text ser|vices..g|
|00002330| 48 61 73 54 65 78 74 53 | 65 72 76 69 63 65 73 20 |HasTextS|ervices |
|00002340| 3d 20 66 61 6c 73 65 3b | 0d 09 67 48 61 73 54 53 |= false;|..gHasTS|
|00002350| 4d 54 45 20 3d 20 66 61 | 6c 73 65 3b 0d 7d 3b 0d |MTE = fa|lse;.};.|
|00002360| 49 66 20 79 6f 75 20 75 | 73 65 20 79 6f 75 72 20 |If you u|se your |
|00002370| 6f 77 6e 20 74 65 78 74 | 20 65 6e 67 69 6e 65 20 |own text| engine |
|00002380| 69 6e 20 61 64 64 69 74 | 69 6f 6e 20 74 6f 20 54 |in addit|ion to T|
|00002390| 65 78 74 45 64 69 74 20 | 61 6e 64 20 73 75 70 70 |extEdit |and supp|
|000023a0| 6f 72 74 20 69 6e 6c 69 | 6e 65 20 69 6e 70 75 74 |ort inli|ne input|
|000023b0| 20 66 6f 72 20 69 74 2c | 20 79 6f 75 20 77 61 6e | for it,| you wan|
|000023c0| 74 20 74 6f 20 75 73 65 | 20 69 6e 6c 69 6e 65 20 |t to use| inline |
|000023d0| 69 6e 70 75 74 20 66 6f | 72 20 79 6f 75 72 20 65 |input fo|r your e|
|000023e0| 6e 67 69 6e 65 20 65 76 | 65 6e 20 69 66 20 54 53 |ngine ev|en if TS|
|000023f0| 4d 54 45 20 69 73 20 6e | 6f 74 20 61 76 61 69 6c |MTE is n|ot avail|
|00002400| 61 62 6c 65 2e 20 54 6f | 20 64 6f 20 74 68 69 73 |able. To| do this|
|00002410| 2c 20 79 6f 75 20 73 69 | 6d 70 6c 79 20 63 68 65 |, you si|mply che|
|00002420| 63 6b 20 67 48 61 73 54 | 65 78 74 53 65 72 76 69 |ck gHasT|extServi|
|00002430| 63 65 73 20 69 6e 73 74 | 65 61 64 20 6f 66 20 67 |ces inst|ead of g|
|00002440| 48 61 73 54 53 4d 54 45 | 20 69 6e 20 74 68 65 20 |HasTSMTE| in the |
|00002450| 66 69 72 73 74 20 6c 69 | 6e 65 20 6f 66 20 74 68 |first li|ne of th|
|00002460| 65 20 63 6f 64 65 20 61 | 62 6f 76 65 2e 20 4c 61 |e code a|bove. La|
|00002470| 74 65 72 2c 20 79 6f 75 | 20 61 6c 73 6f 20 68 61 |ter, you| also ha|
|00002480| 76 65 20 74 6f 20 6d 61 | 6b 65 20 73 75 72 65 20 |ve to ma|ke sure |
|00002490| 74 68 61 74 20 79 6f 75 | 20 74 65 6c 6c 20 74 68 |that you| tell th|
|000024a0| 65 20 54 65 78 74 20 53 | 65 72 76 69 63 65 73 20 |e Text S|ervices |
|000024b0| 4d 61 6e 61 67 65 72 20 | 74 6f 20 75 73 65 20 74 |Manager |to use t|
|000024c0| 68 65 20 66 6c 6f 61 74 | 69 6e 67 20 69 6e 70 75 |he float|ing inpu|
|000024d0| 74 20 77 69 6e 64 6f 77 | 20 77 68 65 6e 65 76 65 |t window| wheneve|
|000024e0| 72 20 61 20 54 65 78 74 | 45 64 69 74 20 66 69 65 |r a Text|Edit fie|
|000024f0| 6c 64 20 69 73 20 61 63 | 74 69 76 65 20 d0 20 74 |ld is ac|tive . t|
|00002500| 68 65 20 73 65 63 74 69 | 6f 6e 20 d2 55 73 69 6e |he secti|on .Usin|
|00002510| 67 20 54 53 4d 54 45 20 | 61 6e 64 20 54 65 78 74 |g TSMTE |and Text|
|00002520| 45 64 69 74 20 69 6e 20 | 41 64 64 69 74 69 6f 6e |Edit in |Addition|
|00002530| 20 74 6f 20 59 6f 75 72 | 20 4f 77 6e 20 54 65 78 | to Your| Own Tex|
|00002540| 74 20 45 6e 67 69 6e 65 | d3 20 64 69 73 63 75 73 |t Engine|. discus|
|00002550| 73 65 73 20 74 68 69 73 | 20 69 6e 20 64 65 74 61 |ses this| in deta|
|00002560| 69 6c 2e 0d 49 6e 20 65 | 69 74 68 65 72 20 63 61 |il..In e|ither ca|
|00002570| 73 65 2c 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 |se, you |have to |
|00002580| 63 61 6c 6c 20 43 6c 6f | 73 65 54 53 4d 41 77 61 |call Clo|seTSMAwa|
|00002590| 72 65 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 62 65 |reApplic|ation be|
|000025a0| 66 6f 72 65 20 71 75 69 | 74 74 69 6e 67 20 61 6e |fore qui|tting an|
|000025b0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 66 6f 72 | applica|tion for|
|000025c0| 20 77 68 69 63 68 20 79 | 6f 75 20 73 75 63 63 65 | which y|ou succe|
|000025d0| 73 73 66 75 6c 6c 79 20 | 63 61 6c 6c 65 64 20 49 |ssfully |called I|
|000025e0| 6e 69 74 54 53 4d 41 77 | 61 72 65 41 70 70 6c 69 |nitTSMAw|areAppli|
|000025f0| 63 61 74 69 6f 6e 3a 0d | 69 66 20 28 67 48 61 73 |cation:.|if (gHas|
|00002600| 54 65 78 74 53 65 72 76 | 69 63 65 73 29 0d 09 28 |TextServ|ices)..(|
|00002610| 76 6f 69 64 29 20 43 6c | 6f 73 65 54 53 4d 41 77 |void) Cl|oseTSMAw|
|00002620| 61 72 65 41 70 70 6c 69 | 63 61 74 69 6f 6e 28 29 |areAppli|cation()|
|00002630| 3b 0d 45 78 69 74 54 6f | 53 68 65 6c 6c 28 29 3b |;.ExitTo|Shell();|
|00002640| 0d 55 73 69 6e 67 20 54 | 53 4d 54 45 20 66 6f 72 |.Using T|SMTE for|
|00002650| 20 4d 6f 64 61 6c 20 44 | 69 61 6c 6f 67 73 0d 4f | Modal D|ialogs.O|
|00002660| 6e 63 65 20 79 6f 75 20 | 68 61 76 65 20 69 6e 69 |nce you |have ini|
|00002670| 74 69 61 6c 69 7a 65 64 | 20 74 68 65 20 54 65 78 |tialized| the Tex|
|00002680| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|00002690| 65 72 2c 20 54 53 4d 54 | 45 20 6f 66 66 65 72 73 |er, TSMT|E offers|
|000026a0| 20 61 20 76 65 72 79 20 | 65 61 73 79 20 77 61 79 | a very |easy way|
|000026b0| 20 74 6f 20 68 61 6e 64 | 6c 65 20 69 6e 6c 69 6e | to hand|le inlin|
|000026c0| 65 20 69 6e 70 75 74 20 | 66 6f 72 20 6d 6f 64 61 |e input |for moda|
|000026d0| 6c 20 64 69 61 6c 6f 67 | 73 3a 20 79 6f 75 20 73 |l dialog|s: you s|
|000026e0| 65 74 20 74 68 65 20 72 | 65 66 43 6f 6e 20 66 69 |et the r|efCon fi|
|000026f0| 65 6c 64 20 69 6e 20 74 | 68 65 20 44 4c 4f 47 20 |eld in t|he DLOG |
|00002700| 72 65 73 6f 75 72 63 65 | 20 74 6f 20 6b 54 53 4d |resource| to kTSM|
|00002710| 54 45 44 69 61 6c 6f 67 | 20 6f 72 20 6b 54 53 4d |TEDialog| or kTSM|
|00002720| 54 45 49 6e 74 65 72 66 | 61 63 65 54 79 70 65 2c |TEInterf|aceType,|
|00002730| 20 54 53 4d 54 45 20 68 | 61 6e 64 6c 65 73 20 74 | TSMTE h|andles t|
|00002740| 68 65 20 72 65 73 74 2e | 20 4f 72 2c 20 69 66 20 |he rest.| Or, if |
|00002750| 63 69 72 63 75 6d 73 74 | 61 6e 63 65 73 20 66 6f |circumst|ances fo|
|00002760| 72 63 65 20 79 6f 75 20 | 74 6f 20 63 72 65 61 74 |rce you |to creat|
|00002770| 65 20 61 20 64 69 61 6c | 6f 67 20 70 72 6f 67 72 |e a dial|og progr|
|00002780| 61 6d 6d 61 74 69 63 61 | 6c 6c 79 2c 20 79 6f 75 |ammatica|lly, you|
|00002790| 20 63 61 6e 20 70 61 73 | 73 20 6b 54 53 4d 54 45 | can pas|s kTSMTE|
|000027a0| 49 6e 74 65 72 66 61 63 | 65 54 79 70 65 20 61 73 |Interfac|eType as|
|000027b0| 20 74 68 65 20 72 65 66 | 43 6f 6e 20 61 72 67 75 | the ref|Con argu|
|000027c0| 6d 65 6e 74 20 74 6f 20 | 4e 65 77 44 69 61 6c 6f |ment to |NewDialo|
|000027d0| 67 20 6f 72 20 4e 65 77 | 43 44 69 61 6c 6f 67 20 |g or New|CDialog |
|000027e0| 28 74 68 65 73 65 20 72 | 6f 75 74 69 6e 65 73 20 |(these r|outines |
|000027f0| 64 6f 20 6e 6f 74 20 61 | 63 63 65 70 74 20 6b 54 |do not a|ccept kT|
|00002800| 53 4d 54 45 44 69 61 6c | 6f 67 29 2e 20 45 69 74 |SMTEDial|og). Eit|
|00002810| 68 65 72 20 77 61 79 2c | 20 54 53 4d 54 45 20 77 |her way,| TSMTE w|
|00002820| 69 6c 6c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ill auto|maticall|
|00002830| 79 20 63 72 65 61 74 65 | 20 61 20 54 53 4d 44 6f |y create| a TSMDo|
|00002840| 63 75 6d 65 6e 74 20 66 | 6f 72 20 79 6f 75 2c 20 |cument f|or you, |
|00002850| 61 63 74 69 76 61 74 65 | 20 61 6e 64 20 64 65 61 |activate| and dea|
|00002860| 63 74 69 76 61 74 65 20 | 74 68 65 20 54 53 4d 44 |ctivate |the TSMD|
|00002870| 6f 63 75 6d 65 6e 74 2c | 20 61 6e 64 20 65 6e 61 |ocument,| and ena|
|00002880| 62 6c 65 20 69 6e 6c 69 | 6e 65 20 69 6e 70 75 74 |ble inli|ne input|
|00002890| 20 66 6f 72 20 74 68 65 | 20 64 69 61 6c 6f 67 2e | for the| dialog.|
|000028a0| 20 57 68 65 6e 20 79 6f | 75 20 63 61 6c 6c 20 43 | When yo|u call C|
|000028b0| 6c 6f 73 65 44 69 61 6c | 6f 67 20 6f 72 20 44 69 |loseDial|og or Di|
|000028c0| 73 70 6f 73 65 44 69 61 | 6c 6f 67 2c 20 54 53 4d |sposeDia|log, TSM|
|000028d0| 54 45 20 64 69 73 70 6f | 73 65 73 20 6f 66 20 74 |TE dispo|ses of t|
|000028e0| 68 65 20 54 53 4d 44 6f | 63 75 6d 65 6e 74 20 69 |he TSMDo|cument i|
|000028f0| 74 20 63 72 65 61 74 65 | 64 2c 20 61 63 74 69 76 |t create|d, activ|
|00002900| 61 74 65 73 20 74 68 65 | 20 54 53 4d 44 6f 63 75 |ates the| TSMDocu|
|00002910| 6d 65 6e 74 20 74 68 61 | 74 20 77 61 73 20 61 63 |ment tha|t was ac|
|00002920| 74 69 76 65 20 62 65 66 | 6f 72 65 20 6f 70 65 6e |tive bef|ore open|
|00002930| 69 6e 67 20 74 68 65 20 | 64 69 61 6c 6f 67 20 28 |ing the |dialog (|
|00002940| 69 66 20 74 68 65 72 65 | 20 77 61 73 20 6f 6e 65 |if there| was one|
|00002950| 29 2c 20 61 6e 64 20 72 | 65 73 65 74 73 20 74 68 |), and r|esets th|
|00002960| 65 20 54 65 78 74 20 53 | 65 72 76 69 63 65 73 20 |e Text S|ervices |
|00002970| 4d 61 6e 61 67 65 72 20 | 66 6c 61 67 20 74 68 61 |Manager |flag tha|
|00002980| 74 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 65 |t determ|ines whe|
|00002990| 74 68 65 72 20 74 6f 20 | 75 73 65 20 74 68 65 20 |ther to |use the |
|000029a0| 66 6c 6f 61 74 69 6e 67 | 20 69 6e 70 75 74 20 77 |floating| input w|
|000029b0| 69 6e 64 6f 77 20 74 6f | 20 69 74 73 20 70 72 65 |indow to| its pre|
|000029c0| 76 69 6f 75 73 20 73 74 | 61 74 65 2e 0d 4e 6f 74 |vious st|ate..Not|
|000029d0| 65 3a 09 49 66 20 79 6f | 75 20 75 73 65 20 74 68 |e:.If yo|u use th|
|000029e0| 69 73 20 66 65 61 74 75 | 72 65 2c 20 79 6f 75 20 |is featu|re, you |
|000029f0| 63 61 6e 20 73 74 69 6c | 6c 20 75 73 65 20 74 68 |can stil|l use th|
|00002a00| 65 20 72 65 66 43 6f 6e | 20 66 69 65 6c 64 20 66 |e refCon| field f|
|00002a10| 6f 72 20 79 6f 75 72 20 | 6f 77 6e 20 70 75 72 70 |or your |own purp|
|00002a20| 6f 73 65 73 20 61 66 74 | 65 72 20 63 72 65 61 74 |oses aft|er creat|
|00002a30| 69 6e 67 20 74 68 65 20 | 64 69 61 6c 6f 67 20 d0 |ing the |dialog .|
|00002a40| 20 54 53 4d 54 45 20 64 | 6f 65 73 6e d5 74 20 6e | TSMTE d|oesn.t n|
|00002a50| 65 65 64 20 69 74 20 61 | 6e 79 20 6c 6f 6e 67 65 |eed it a|ny longe|
|00002a60| 72 2e 0d 54 68 65 20 64 | 69 66 66 65 72 65 6e 63 |r..The d|ifferenc|
|00002a70| 65 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 74 77 |e betwee|n the tw|
|00002a80| 6f 20 63 6f 6e 73 74 61 | 6e 74 73 20 69 73 20 74 |o consta|nts is t|
|00002a90| 68 61 74 20 6b 54 53 4d | 54 45 49 6e 74 65 72 66 |hat kTSM|TEInterf|
|00002aa0| 61 63 65 54 79 70 65 20 | 74 65 6c 6c 73 20 54 53 |aceType |tells TS|
|00002ab0| 4d 54 45 20 74 6f 20 75 | 73 65 20 61 6e 20 65 78 |MTE to u|se an ex|
|00002ac0| 74 65 6e 64 65 64 20 64 | 69 61 6c 6f 67 20 72 65 |tended d|ialog re|
|00002ad0| 63 6f 72 64 2c 20 54 53 | 4d 44 69 61 6c 6f 67 52 |cord, TS|MDialogR|
|00002ae0| 65 63 6f 72 64 2c 20 77 | 68 69 6c 65 20 6b 54 53 |ecord, w|hile kTS|
|00002af0| 4d 54 45 44 69 61 6c 6f | 67 20 75 73 65 73 20 74 |MTEDialo|g uses t|
|00002b00| 68 65 20 73 74 61 6e 64 | 61 72 64 20 64 69 61 6c |he stand|ard dial|
|00002b10| 6f 67 20 72 65 63 6f 72 | 64 2e 20 55 73 69 6e 67 |og recor|d. Using|
|00002b20| 20 74 68 65 20 65 78 74 | 65 6e 64 65 64 20 64 69 | the ext|ended di|
|00002b30| 61 6c 6f 67 20 72 65 63 | 6f 72 64 20 6c 65 74 73 |alog rec|ord lets|
|00002b40| 20 79 6f 75 20 61 63 63 | 65 73 73 20 74 68 65 20 | you acc|ess the |
|00002b50| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 68 61 74 |informat|ion that|
|00002b60| 20 54 53 4d 54 45 20 75 | 73 65 73 20 69 66 20 79 | TSMTE u|ses if y|
|00002b70| 6f 75 20 6e 65 65 64 20 | 69 74 3b 20 77 69 74 68 |ou need |it; with|
|00002b80| 6f 75 74 20 69 74 2c 20 | 74 68 65 20 69 6e 66 6f |out it, |the info|
|00002b90| 72 6d 61 74 69 6f 6e 20 | 69 73 20 73 74 6f 72 65 |rmation |is store|
|00002ba0| 64 20 69 6e 20 54 53 4d | 54 45 d5 73 20 70 72 69 |d in TSM|TE.s pri|
|00002bb0| 76 61 74 65 20 64 61 74 | 61 20 73 74 72 75 63 74 |vate dat|a struct|
|00002bc0| 75 72 65 73 2e 20 49 66 | 20 79 6f 75 20 75 73 65 |ures. If| you use|
|00002bd0| 20 6b 54 53 4d 54 45 49 | 6e 74 65 72 66 61 63 65 | kTSMTEI|nterface|
|00002be0| 54 79 70 65 20 62 75 74 | 20 64 6f 6e d5 74 20 70 |Type but| don.t p|
|00002bf0| 72 6f 76 69 64 65 20 73 | 74 6f 72 61 67 65 20 66 |rovide s|torage f|
|00002c00| 6f 72 20 74 68 65 20 64 | 69 61 6c 6f 67 20 72 65 |or the d|ialog re|
|00002c10| 63 6f 72 64 2c 20 74 68 | 65 20 44 69 61 6c 6f 67 |cord, th|e Dialog|
|00002c20| 20 4d 61 6e 61 67 65 72 | 20 72 6f 75 74 69 6e 65 | Manager| routine|
|00002c30| 73 20 77 69 6c 6c 20 61 | 75 74 6f 6d 61 74 69 63 |s will a|utomatic|
|00002c40| 61 6c 6c 79 20 61 6c 6c | 6f 63 61 74 65 20 61 6e |ally all|ocate an|
|00002c50| 20 65 78 74 65 6e 64 65 | 64 20 72 65 63 6f 72 64 | extende|d record|
|00002c60| 2e 0d 49 66 20 79 6f 75 | 20 75 73 65 20 6b 54 53 |..If you| use kTS|
|00002c70| 4d 54 45 49 6e 74 65 72 | 66 61 63 65 54 79 70 65 |MTEInter|faceType|
|00002c80| 20 61 6e 64 20 61 6c 6c | 6f 63 61 74 65 20 79 6f | and all|ocate yo|
|00002c90| 75 72 20 6f 77 6e 20 73 | 74 6f 72 61 67 65 20 6f |ur own s|torage o|
|00002ca0| 72 20 61 64 64 20 79 6f | 75 72 20 6f 77 6e 20 66 |r add yo|ur own f|
|00002cb0| 69 65 6c 64 73 20 74 6f | 20 74 68 65 20 64 69 61 |ields to| the dia|
|00002cc0| 6c 6f 67 20 72 65 63 6f | 72 64 2c 20 79 6f 75 20 |log reco|rd, you |
|00002cd0| 68 61 76 65 20 74 6f 20 | 74 61 6b 65 20 74 68 65 |have to |take the|
|00002ce0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 32 30 20 62 | additio|nal 20 b|
|00002cf0| 79 74 65 73 20 6f 66 20 | 74 68 65 20 65 78 74 65 |ytes of |the exte|
|00002d00| 6e 64 65 64 20 64 69 61 | 6c 6f 67 20 72 65 63 6f |nded dia|log reco|
|00002d10| 72 64 20 69 6e 74 6f 20 | 61 63 63 6f 75 6e 74 2e |rd into |account.|
|00002d20| 20 49 66 20 79 6f 75 20 | 61 64 64 20 79 6f 75 72 | If you |add your|
|00002d30| 20 6f 77 6e 20 66 69 65 | 6c 64 73 2c 20 69 74 d5 | own fie|lds, it.|
|00002d40| 73 20 61 20 67 6f 6f 64 | 20 69 64 65 61 20 74 6f |s a good| idea to|
|00002d50| 20 61 6c 73 6f 20 61 6c | 6c 6f 63 61 74 65 20 79 | also al|locate y|
|00002d60| 6f 75 72 20 6f 77 6e 20 | 73 74 6f 72 61 67 65 2e |our own |storage.|
|00002d70| 20 54 68 69 73 20 77 61 | 79 20 79 6f 75 20 63 61 | This wa|y you ca|
|00002d80| 6e 20 61 6c 77 61 79 73 | 20 69 6e 63 6c 75 64 65 |n always| include|
|00002d90| 20 74 68 65 20 66 69 65 | 6c 64 73 20 66 6f 72 20 | the fie|lds for |
|00002da0| 54 53 4d 54 45 2c 20 6f | 74 68 65 72 77 69 73 65 |TSMTE, o|therwise|
|00002db0| 20 74 68 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 | the loc|ation of|
|00002dc0| 20 79 6f 75 72 20 66 69 | 65 6c 64 73 20 69 6e 20 | your fi|elds in |
|00002dd0| 74 68 65 20 72 65 63 6f | 72 64 20 64 65 70 65 6e |the reco|rd depen|
|00002de0| 64 73 20 6f 6e 20 77 68 | 65 74 68 65 72 20 54 53 |ds on wh|ether TS|
|00002df0| 4d 54 45 20 69 73 20 69 | 6e 73 74 61 6c 6c 65 64 |MTE is i|nstalled|
|00002e00| 20 6f 72 20 6e 6f 74 2e | 0d 49 66 20 79 6f 75 20 | or not.|.If you |
|00002e10| 70 72 6f 76 69 64 65 20 | 61 6e 20 65 76 65 6e 74 |provide |an event|
|00002e20| 20 66 69 6c 74 65 72 20 | 66 75 6e 63 74 69 6f 6e | filter |function|
|00002e30| 20 66 6f 72 20 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 | for Mod|alDialog|
|00002e40| 2c 20 54 53 4d 54 45 20 | 67 69 76 65 73 20 79 6f |, TSMTE |gives yo|
|00002e50| 75 20 74 68 65 20 63 68 | 6f 69 63 65 20 77 68 65 |u the ch|oice whe|
|00002e60| 74 68 65 72 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |ther you| want to|
|00002e70| 20 68 61 6e 64 6c 65 20 | 54 65 78 74 20 53 65 72 | handle |Text Ser|
|00002e80| 76 69 63 65 73 20 4d 61 | 6e 61 67 65 72 20 63 61 |vices Ma|nager ca|
|00002e90| 6c 6c 73 20 6f 72 20 77 | 68 65 74 68 65 72 20 54 |lls or w|hether T|
|00002ea0| 53 4d 54 45 20 73 68 6f | 75 6c 64 20 64 6f 20 69 |SMTE sho|uld do i|
|00002eb0| 74 2e 20 54 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |t. To de|termine |
|00002ec0| 77 68 65 74 68 65 72 20 | 74 68 65 20 66 75 6e 63 |whether |the func|
|00002ed0| 74 69 6f 6e 20 68 61 6e | 64 6c 65 73 20 74 68 65 |tion han|dles the|
|00002ee0| 20 63 61 6c 6c 73 2c 20 | 54 53 4d 54 45 20 63 61 | calls, |TSMTE ca|
|00002ef0| 6c 6c 73 20 69 74 20 77 | 69 74 68 20 61 20 6e 75 |lls it w|ith a nu|
|00002f00| 6c 6c 20 65 76 65 6e 74 | 2e 20 49 66 20 74 68 65 |ll event|. If the|
|00002f10| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 20 | functio|n calls |
|00002f20| 54 53 4d 45 76 65 6e 74 | 2c 20 54 53 4d 54 45 20 |TSMEvent|, TSMTE |
|00002f30| 61 73 73 75 6d 65 73 20 | 74 68 61 74 20 74 68 65 |assumes |that the|
|00002f40| 20 66 75 6e 63 74 69 6f | 6e 20 6d 61 6b 65 73 20 | functio|n makes |
|00002f50| 61 6c 6c 20 74 68 65 20 | 6e 65 63 65 73 73 61 72 |all the |necessar|
|00002f60| 79 20 63 61 6c 6c 73 20 | 74 6f 20 74 68 65 20 54 |y calls |to the T|
|00002f70| 65 78 74 20 53 65 72 76 | 69 63 65 73 20 4d 61 6e |ext Serv|ices Man|
|00002f80| 61 67 65 72 2e 20 49 66 | 20 69 74 20 64 6f 65 73 |ager. If| it does|
|00002f90| 6e d5 74 2c 20 6f 72 20 | 69 66 20 74 68 65 72 65 |n.t, or |if there|
|00002fa0| 20 69 73 20 6e 6f 20 65 | 76 65 6e 74 20 66 69 6c | is no e|vent fil|
|00002fb0| 74 65 72 20 66 75 6e 63 | 74 69 6f 6e 2c 20 54 53 |ter func|tion, TS|
|00002fc0| 4d 54 45 20 6d 61 6b 65 | 73 20 61 6c 6c 20 74 68 |MTE make|s all th|
|00002fd0| 65 20 6e 65 63 65 73 73 | 61 72 79 20 63 61 6c 6c |e necess|ary call|
|00002fe0| 73 20 69 74 73 65 6c 66 | 2e 0d 57 68 69 6c 65 20 |s itself|..While |
|00002ff0| 75 73 69 6e 67 20 69 6e | 6c 69 6e 65 20 69 6e 70 |using in|line inp|
|00003000| 75 74 2c 20 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 20 |ut, Moda|lDialog |
|00003010| 64 6f 65 73 6e d5 74 20 | 72 65 74 75 72 6e 20 62 |doesn.t |return b|
|00003020| 65 63 61 75 73 65 20 69 | 74 20 64 6f 65 73 6e d5 |ecause i|t doesn.|
|00003030| 74 20 67 65 74 20 74 6f | 20 73 65 65 20 61 6e 79 |t get to| see any|
|00003040| 20 d2 72 65 61 6c d3 20 | 65 76 65 6e 74 73 2e 20 | .real. |events. |
|00003050| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 20 64 69 |If you h|ave a di|
|00003060| 61 6c 6f 67 20 74 68 61 | 74 20 6f 70 65 6e 73 20 |alog tha|t opens |
|00003070| 77 69 74 68 20 61 20 64 | 69 73 61 62 6c 65 64 20 |with a d|isabled |
|00003080| 61 63 74 69 6f 6e 20 62 | 75 74 74 6f 6e 20 61 6e |action b|utton an|
|00003090| 64 20 77 61 69 74 73 20 | 66 6f 72 20 74 68 65 20 |d waits |for the |
|000030a0| 75 73 65 72 20 74 6f 20 | 74 79 70 65 20 74 65 78 |user to |type tex|
|000030b0| 74 20 69 6e 74 6f 20 61 | 6e 20 65 64 69 74 61 62 |t into a|n editab|
|000030c0| 6c 65 20 74 65 78 74 20 | 69 74 65 6d 20 62 65 66 |le text |item bef|
|000030d0| 6f 72 65 20 65 6e 61 62 | 6c 69 6e 67 20 74 68 65 |ore enab|ling the|
|000030e0| 20 62 75 74 74 6f 6e 2c | 20 63 68 65 63 6b 69 6e | button,| checkin|
|000030f0| 67 20 74 68 65 20 65 64 | 69 74 61 62 6c 65 20 74 |g the ed|itable t|
|00003100| 65 78 74 20 69 74 65 6d | 20 6f 6e 6c 79 20 61 66 |ext item| only af|
|00003110| 74 65 72 20 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 20 |ter Moda|lDialog |
|00003120| 72 65 74 75 72 6e 73 20 | 64 6f 65 73 20 6e 6f 74 |returns |does not|
|00003130| 20 68 61 76 65 20 74 68 | 65 20 64 65 73 69 72 65 | have th|e desire|
|00003140| 64 20 65 66 66 65 63 74 | 20 d0 20 69 66 20 74 68 |d effect| . if th|
|00003150| 65 20 75 73 65 72 20 75 | 73 65 73 20 69 6e 6c 69 |e user u|ses inli|
|00003160| 6e 65 20 69 6e 70 75 74 | 20 74 6f 20 65 6e 74 65 |ne input| to ente|
|00003170| 72 20 74 65 78 74 2c 20 | 74 68 65 20 62 75 74 74 |r text, |the butt|
|00003180| 6f 6e 20 64 6f 65 73 6e | d5 74 20 67 65 74 20 65 |on doesn|.t get e|
|00003190| 6e 61 62 6c 65 64 2e 20 | 41 20 73 6f 6c 75 74 69 |nabled. |A soluti|
|000031a0| 6f 6e 20 66 6f 72 20 74 | 68 69 73 20 69 73 20 74 |on for t|his is t|
|000031b0| 6f 20 75 73 65 20 61 6e | 20 65 76 65 6e 74 20 66 |o use an| event f|
|000031c0| 69 6c 74 65 72 20 66 75 | 6e 63 74 69 6f 6e 20 74 |ilter fu|nction t|
|000031d0| 68 61 74 20 63 68 65 63 | 6b 73 20 74 68 65 20 74 |hat chec|ks the t|
|000031e0| 65 78 74 20 69 6e 20 74 | 68 65 20 65 64 69 74 61 |ext in t|he edita|
|000031f0| 62 6c 65 20 74 65 78 74 | 20 69 74 65 6d 20 61 6e |ble text| item an|
|00003200| 64 20 65 6e 61 62 6c 65 | 73 20 74 68 65 20 62 75 |d enable|s the bu|
|00003210| 74 74 6f 6e 20 69 66 20 | 74 68 65 20 74 65 78 74 |tton if |the text|
|00003220| 20 6c 65 6e 67 74 68 20 | 69 73 20 61 62 6f 76 65 | length |is above|
|00003230| 20 7a 65 72 6f 2e 20 54 | 68 65 20 65 76 65 6e 74 | zero. T|he event|
|00003240| 20 66 69 6c 74 65 72 20 | 66 75 6e 63 74 69 6f 6e | filter |function|
|00003250| 20 69 73 20 67 75 61 72 | 61 6e 74 65 65 64 20 74 | is guar|anteed t|
|00003260| 6f 20 62 65 20 63 61 6c | 6c 65 64 20 77 69 74 68 |o be cal|led with|
|00003270| 20 61 20 6e 75 6c 6c 20 | 65 76 65 6e 74 20 77 68 | a null |event wh|
|00003280| 65 6e 65 76 65 72 20 54 | 53 4d 45 76 65 6e 74 20 |enever T|SMEvent |
|00003290| 63 6f 6e 73 75 6d 65 73 | 20 61 20 6b 65 79 44 6f |consumes| a keyDo|
|000032a0| 77 6e 20 65 76 65 6e 74 | 2e 0d 55 73 69 6e 67 20 |wn event|..Using |
|000032b0| 54 53 4d 54 45 20 66 6f | 72 20 44 6f 63 75 6d 65 |TSMTE fo|r Docume|
|000032c0| 6e 74 20 57 69 6e 64 6f | 77 73 20 61 6e 64 20 66 |nt Windo|ws and f|
|000032d0| 6f 72 20 4d 6f 64 65 6c | 65 73 73 20 44 69 61 6c |or Model|ess Dial|
|000032e0| 6f 67 73 0d 49 66 20 79 | 6f 75 20 75 73 65 20 54 |ogs.If y|ou use T|
|000032f0| 65 78 74 45 64 69 74 20 | 74 6f 20 65 64 69 74 20 |extEdit |to edit |
|00003300| 74 65 78 74 20 69 6e 20 | 64 6f 63 75 6d 65 6e 74 |text in |document|
|00003310| 20 77 69 6e 64 6f 77 73 | 20 6f 72 20 69 66 20 79 | windows| or if y|
|00003320| 6f 75 20 75 73 65 20 6d | 6f 64 65 6c 65 73 73 20 |ou use m|odeless |
|00003330| 64 69 61 6c 6f 67 73 2c | 20 73 6f 6d 65 20 6d 6f |dialogs,| some mo|
|00003340| 72 65 20 77 6f 72 6b 20 | 69 73 20 73 68 69 66 74 |re work |is shift|
|00003350| 65 64 20 6f 76 65 72 20 | 74 6f 20 79 6f 75 3a 20 |ed over |to you: |
|00003360| 6e 6f 77 20 69 74 20 62 | 65 63 6f 6d 65 73 20 79 |now it b|ecomes y|
|00003370| 6f 75 72 20 72 65 73 70 | 6f 6e 73 69 62 69 6c 69 |our resp|onsibili|
|00003380| 74 79 20 74 6f 20 63 61 | 6c 6c 20 74 68 65 20 68 |ty to ca|ll the h|
|00003390| 69 67 68 2d 6c 65 76 65 | 6c 20 54 65 78 74 20 53 |igh-leve|l Text S|
|000033a0| 65 72 76 69 63 65 73 20 | 4d 61 6e 61 67 65 72 20 |ervices |Manager |
|000033b0| 72 6f 75 74 69 6e 65 73 | 2e 20 59 6f 75 d5 6c 6c |routines|. You.ll|
|000033c0| 20 68 61 76 65 20 74 6f | 20 61 64 64 20 63 61 6c | have to| add cal|
|000033d0| 6c 73 20 74 6f 3a 0d 4e | 65 77 54 53 4d 44 6f 63 |ls to:.N|ewTSMDoc|
|000033e0| 75 6d 65 6e 74 0d 44 65 | 6c 65 74 65 54 53 4d 44 |ument.De|leteTSMD|
|000033f0| 6f 63 75 6d 65 6e 74 0d | 41 63 74 69 76 61 74 65 |ocument.|Activate|
|00003400| 54 53 4d 44 6f 63 75 6d | 65 6e 74 0d 44 65 61 63 |TSMDocum|ent.Deac|
|00003410| 74 69 76 61 74 65 54 53 | 4d 44 6f 63 75 6d 65 6e |tivateTS|MDocumen|
|00003420| 74 0d 54 53 4d 45 76 65 | 6e 74 0d 54 53 4d 4d 65 |t.TSMEve|nt.TSMMe|
|00003430| 6e 75 53 65 6c 65 63 74 | 0d 53 65 74 54 53 4d 43 |nuSelect|.SetTSMC|
|00003440| 75 72 73 6f 72 0d 46 69 | 78 54 53 4d 44 6f 63 75 |ursor.Fi|xTSMDocu|
|00003450| 6d 65 6e 74 0d 42 65 66 | 6f 72 65 20 6d 61 6b 69 |ment.Bef|ore maki|
|00003460| 6e 67 20 74 68 65 20 54 | 65 78 74 20 53 65 72 76 |ng the T|ext Serv|
|00003470| 69 63 65 73 20 4d 61 6e | 61 67 65 72 20 63 61 6c |ices Man|ager cal|
|00003480| 6c 73 2c 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 |ls, you |have to |
|00003490| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 61 74 20 74 |make sur|e that t|
|000034a0| 68 65 69 72 20 70 72 65 | 63 6f 6e 64 69 74 69 6f |heir pre|conditio|
|000034b0| 6e 73 20 61 72 65 20 6d | 65 74 2e 20 59 6f 75 20 |ns are m|et. You |
|000034c0| 6f 6e 6c 79 20 77 61 6e | 74 20 74 6f 20 63 72 65 |only wan|t to cre|
|000034d0| 61 74 65 20 61 20 54 53 | 4d 20 64 6f 63 75 6d 65 |ate a TS|M docume|
|000034e0| 6e 74 20 66 6f 72 20 61 | 20 54 65 78 74 45 64 69 |nt for a| TextEdi|
|000034f0| 74 20 74 65 78 74 20 72 | 65 63 6f 72 64 20 69 66 |t text r|ecord if|
|00003500| 20 54 53 4d 54 45 20 69 | 73 20 61 76 61 69 6c 61 | TSMTE i|s availa|
|00003510| 62 6c 65 2e 20 59 6f 75 | 20 6f 6e 6c 79 20 77 61 |ble. You| only wa|
|00003520| 6e 74 20 74 6f 20 64 65 | 6c 65 74 65 2c 20 61 63 |nt to de|lete, ac|
|00003530| 74 69 76 61 74 65 2c 20 | 6f 72 20 64 65 61 63 74 |tivate, |or deact|
|00003540| 69 76 61 74 65 2c 20 6f | 72 20 63 6f 6e 66 69 72 |ivate, o|r confir|
|00003550| 6d 20 28 d2 66 69 78 d3 | 29 20 61 20 54 53 4d 20 |m (.fix.|) a TSM |
|00003560| 64 6f 63 75 6d 65 6e 74 | 20 69 66 20 63 72 65 61 |document| if crea|
|00003570| 74 69 6e 67 20 69 74 20 | 77 61 73 20 73 75 63 63 |ting it |was succ|
|00003580| 65 73 73 66 75 6c 2e 20 | 54 68 65 20 72 65 6d 61 |essful. |The rema|
|00003590| 69 6e 69 6e 67 20 72 6f | 75 74 69 6e 65 73 20 64 |ining ro|utines d|
|000035a0| 65 70 65 6e 64 20 6f 6e | 20 74 68 65 20 54 65 78 |epend on| the Tex|
|000035b0| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|000035c0| 65 72 20 62 65 69 6e 67 | 20 61 76 61 69 6c 61 62 |er being| availab|
|000035d0| 6c 65 2c 20 62 75 74 20 | 6e 6f 74 20 6e 65 63 65 |le, but |not nece|
|000035e0| 73 73 61 72 69 6c 79 20 | 6f 6e 20 54 53 4d 54 45 |ssarily |on TSMTE|
|000035f0| 20 d0 20 79 6f 75 20 6d | 61 79 20 62 65 20 75 73 | . you m|ay be us|
|00003600| 69 6e 67 20 79 6f 75 72 | 20 6f 77 6e 20 74 65 78 |ing your| own tex|
|00003610| 74 20 65 6e 67 69 6e 65 | 20 77 69 74 68 20 69 6e |t engine| with in|
|00003620| 6c 69 6e 65 20 69 6e 70 | 75 74 20 69 6e 20 61 64 |line inp|ut in ad|
|00003630| 64 69 74 69 6f 6e 20 74 | 6f 20 54 65 78 74 45 64 |dition t|o TextEd|
|00003640| 69 74 2e 20 54 68 65 20 | 76 61 72 69 61 62 6c 65 |it. The |variable|
|00003650| 73 20 67 48 61 73 54 65 | 78 74 53 65 72 76 69 63 |s gHasTe|xtServic|
|00003660| 65 73 20 61 6e 64 20 67 | 48 61 73 54 53 4d 54 45 |es and g|HasTSMTE|
|00003670| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 61 62 6f 76 | introdu|ced abov|
|00003680| 65 20 63 61 6e 20 68 65 | 6c 70 20 79 6f 75 20 6d |e can he|lp you m|
|00003690| 61 6b 65 20 74 68 65 20 | 6e 65 63 65 73 73 61 72 |ake the |necessar|
|000036a0| 79 20 64 65 63 69 73 69 | 6f 6e 73 2e 20 46 6f 72 |y decisi|ons. For|
|000036b0| 20 65 78 61 6d 70 6c 65 | 2c 20 79 6f 75 72 20 6d | example|, your m|
|000036c0| 65 6e 75 20 68 61 6e 64 | 6c 69 6e 67 20 63 6f 64 |enu hand|ling cod|
|000036d0| 65 20 6d 69 67 68 74 20 | 6c 6f 6f 6b 20 6c 69 6b |e might |look lik|
|000036e0| 65 20 74 68 69 73 3a 0d | 6d 65 6e 75 52 65 73 75 |e this:.|menuResu|
|000036f0| 6c 74 20 3d 20 4d 65 6e | 75 53 65 6c 65 63 74 28 |lt = Men|uSelect(|
|00003700| 65 76 65 6e 74 2d 3e 77 | 68 65 72 65 29 3b 0d 69 |event->w|here);.i|
|00003710| 66 20 28 21 28 67 48 61 | 73 54 65 78 74 53 65 72 |f (!(gHa|sTextSer|
|00003720| 76 69 63 65 73 20 26 26 | 20 54 53 4d 4d 65 6e 75 |vices &&| TSMMenu|
|00003730| 53 65 6c 65 63 74 28 6d | 65 6e 75 52 65 73 75 6c |Select(m|enuResul|
|00003740| 74 29 29 29 0d 09 44 6f | 4d 65 6e 75 43 6f 6d 6d |t)))..Do|MenuComm|
|00003750| 61 6e 64 28 6d 65 6e 75 | 52 65 73 75 6c 74 29 3b |and(menu|Result);|
|00003760| 0d 48 69 6c 69 74 65 4d | 65 6e 75 28 30 29 3b 0d |.HiliteM|enu(0);.|
|00003770| 54 68 65 20 75 73 61 67 | 65 20 6f 66 20 54 65 78 |The usag|e of Tex|
|00003780| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|00003790| 65 72 20 72 6f 75 74 69 | 6e 65 73 20 69 73 20 64 |er routi|nes is d|
|000037a0| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 49 6e 73 |ocumente|d in Ins|
|000037b0| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 3a 20 54 |ide Maci|ntosh: T|
|000037c0| 65 78 74 2c 20 73 6f 20 | 77 65 d5 6c 6c 20 64 69 |ext, so |we.ll di|
|000037d0| 73 63 75 73 73 20 6f 6e | 6c 79 20 68 6f 77 20 54 |scuss on|ly how T|
|000037e0| 53 4d 54 45 20 65 78 74 | 65 6e 64 73 20 74 68 65 |SMTE ext|ends the|
|000037f0| 20 54 65 78 74 20 53 65 | 72 76 69 63 65 73 20 4d | Text Se|rvices M|
|00003800| 61 6e 61 67 65 72 20 69 | 6e 74 65 72 66 61 63 65 |anager i|nterface|
|00003810| 2e 0d 43 72 65 61 74 69 | 6e 67 20 61 20 54 53 4d |..Creati|ng a TSM|
|00003820| 20 44 6f 63 75 6d 65 6e | 74 0d 57 68 65 6e 20 63 | Documen|t.When c|
|00003830| 72 65 61 74 69 6e 67 20 | 61 20 54 53 4d 44 6f 63 |reating |a TSMDoc|
|00003840| 75 6d 65 6e 74 20 66 6f | 72 20 61 20 54 65 78 74 |ument fo|r a Text|
|00003850| 45 64 69 74 20 74 65 78 | 74 20 72 65 63 6f 72 64 |Edit tex|t record|
|00003860| 2c 20 79 6f 75 20 68 61 | 76 65 20 74 6f 20 75 73 |, you ha|ve to us|
|00003870| 65 20 61 20 73 70 65 63 | 69 61 6c 20 69 6e 74 65 |e a spec|ial inte|
|00003880| 72 66 61 63 65 20 74 79 | 70 65 20 6b 54 53 4d 54 |rface ty|pe kTSMT|
|00003890| 45 49 6e 74 65 72 66 61 | 63 65 54 79 70 65 20 74 |EInterfa|ceType t|
|000038a0| 6f 20 69 6e 64 69 63 61 | 74 65 20 74 68 61 74 20 |o indica|te that |
|000038b0| 54 53 4d 54 45 20 73 68 | 6f 75 6c 64 20 68 61 6e |TSMTE sh|ould han|
|000038c0| 64 6c 65 20 41 70 70 6c | 65 20 65 76 65 6e 74 73 |dle Appl|e events|
|000038d0| 20 66 6f 72 20 74 68 69 | 73 20 54 53 4d 20 64 6f | for thi|s TSM do|
|000038e0| 63 75 6d 65 6e 74 2e 0d | 49 66 20 79 6f 75 20 70 |cument..|If you p|
|000038f0| 61 73 73 20 6b 54 53 4d | 54 45 49 6e 74 65 72 66 |ass kTSM|TEInterf|
|00003900| 61 63 65 54 79 70 65 20 | 74 6f 20 4e 65 77 54 53 |aceType |to NewTS|
|00003910| 4d 44 6f 63 75 6d 65 6e | 74 2c 20 74 68 65 20 72 |MDocumen|t, the r|
|00003920| 65 66 43 6f 6e 20 61 72 | 67 75 6d 65 6e 74 20 74 |efCon ar|gument t|
|00003930| 61 6b 65 73 20 6f 6e 20 | 61 20 64 69 66 66 65 72 |akes on |a differ|
|00003940| 65 6e 74 20 6d 65 61 6e | 69 6e 67 2e 20 49 6e 73 |ent mean|ing. Ins|
|00003950| 74 65 61 64 20 6f 66 20 | 61 20 76 61 6c 75 65 20 |tead of |a value |
|00003960| 74 6f 20 62 65 20 73 74 | 6f 72 65 64 20 69 6e 20 |to be st|ored in |
|00003970| 74 68 65 20 54 53 4d 20 | 64 6f 63 75 6d 65 6e 74 |the TSM |document|
|00003980| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 70 61 73 |, you sh|ould pas|
|00003990| 73 20 69 6e 20 74 68 65 | 20 61 64 64 72 65 73 73 |s in the| address|
|000039a0| 20 6f 66 20 61 20 76 61 | 72 69 61 62 6c 65 20 6f | of a va|riable o|
|000039b0| 66 20 74 79 70 65 20 54 | 53 4d 54 45 52 65 63 48 |f type T|SMTERecH|
|000039c0| 61 6e 64 6c 65 2e 20 54 | 53 4d 54 45 20 61 6c 6c |andle. T|SMTE all|
|000039d0| 6f 63 61 74 65 73 20 61 | 20 64 61 74 61 20 73 74 |ocates a| data st|
|000039e0| 72 75 63 74 75 72 65 20 | 6f 66 20 74 79 70 65 20 |ructure |of type |
|000039f0| 54 53 4d 54 45 52 65 63 | 20 61 6e 64 20 61 73 73 |TSMTERec| and ass|
|00003a00| 69 67 6e 73 20 61 20 68 | 61 6e 64 6c 65 20 74 6f |igns a h|andle to|
|00003a10| 20 69 74 20 74 6f 20 79 | 6f 75 72 20 76 61 72 69 | it to y|our vari|
|00003a20| 61 62 6c 65 2e 20 54 68 | 69 73 20 64 61 74 61 20 |able. Th|is data |
|00003a30| 73 74 72 75 63 74 75 72 | 65 20 63 6f 6e 74 61 69 |structur|e contai|
|00003a40| 6e 73 20 73 65 76 65 72 | 61 6c 20 66 69 65 6c 64 |ns sever|al field|
|00003a50| 73 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 75 |s that y|ou can u|
|00003a60| 73 65 20 74 6f 20 74 61 | 69 6c 6f 72 20 54 53 4d |se to ta|ilor TSM|
|00003a70| 54 45 d5 73 20 62 65 68 | 61 76 69 6f 72 20 74 6f |TE.s beh|avior to|
|00003a80| 20 74 68 65 20 6e 65 65 | 64 73 20 6f 66 20 79 6f | the nee|ds of yo|
|00003a90| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |ur appli|cation. |
|00003aa0| 49 74 20 69 73 20 79 6f | 75 72 20 61 70 70 6c 69 |It is yo|ur appli|
|00003ab0| 63 61 74 69 6f 6e d5 73 | 20 72 65 73 70 6f 6e 73 |cation.s| respons|
|00003ac0| 69 62 69 6c 69 74 79 20 | 74 6f 20 69 6e 69 74 69 |ibility |to initi|
|00003ad0| 61 6c 69 7a 65 20 74 68 | 65 20 72 65 63 6f 72 64 |alize th|e record|
|00003ae0| 2e 0d 73 74 72 75 63 74 | 20 54 53 4d 54 45 52 65 |..struct| TSMTERe|
|00003af0| 63 20 7b 0d 09 54 45 48 | 61 6e 64 6c 65 09 09 09 |c {..TEH|andle...|
|00003b00| 09 09 74 65 78 74 48 3b | 0d 09 54 53 4d 54 45 50 |..textH;|..TSMTEP|
|00003b10| 72 65 55 70 64 61 74 65 | 55 50 50 09 09 70 72 65 |reUpdate|UPP..pre|
|00003b20| 55 70 64 61 74 65 50 72 | 6f 63 3b 0d 09 54 53 4d |UpdatePr|oc;..TSM|
|00003b30| 54 45 50 6f 73 74 55 70 | 64 61 74 65 55 50 50 09 |TEPostUp|dateUPP.|
|00003b40| 70 6f 73 74 55 70 64 61 | 74 65 50 72 6f 63 3b 0d |postUpda|teProc;.|
|00003b50| 09 6c 6f 6e 67 09 09 09 | 09 09 09 75 70 64 61 74 |.long...|...updat|
|00003b60| 65 46 6c 61 67 3b 0d 09 | 6c 6f 6e 67 09 09 09 09 |eFlag;..|long....|
|00003b70| 09 09 72 65 66 43 6f 6e | 3b 0d 7d 3b 0d 54 68 65 |..refCon|;.};.The|
|00003b80| 20 74 65 78 74 48 20 66 | 69 65 6c 64 20 68 61 73 | textH f|ield has|
|00003b90| 20 74 6f 20 62 65 20 73 | 65 74 20 74 6f 20 74 68 | to be s|et to th|
|00003ba0| 65 20 74 65 78 74 20 72 | 65 63 6f 72 64 20 68 61 |e text r|ecord ha|
|00003bb0| 6e 64 6c 65 20 74 68 61 | 74 20 74 68 69 73 20 54 |ndle tha|t this T|
|00003bc0| 53 4d 20 64 6f 63 75 6d | 65 6e 74 20 72 65 6c 61 |SM docum|ent rela|
|00003bd0| 74 65 73 20 74 6f 2e 0d | 49 6e 20 70 72 65 55 70 |tes to..|In preUp|
|00003be0| 64 61 74 65 50 72 6f 63 | 20 61 6e 64 20 70 6f 73 |dateProc| and pos|
|00003bf0| 74 55 70 64 61 74 65 50 | 72 6f 63 20 79 6f 75 20 |tUpdateP|roc you |
|00003c00| 63 61 6e 20 73 70 65 63 | 69 66 79 20 63 61 6c 6c |can spec|ify call|
|00003c10| 2d 62 61 63 6b 20 72 6f | 75 74 69 6e 65 73 20 74 |-back ro|utines t|
|00003c20| 68 61 74 20 54 53 4d 54 | 45 20 73 68 6f 75 6c 64 |hat TSMT|E should|
|00003c30| 20 63 61 6c 6c 20 62 65 | 66 6f 72 65 20 61 6e 64 | call be|fore and|
|00003c40| 20 61 66 74 65 72 20 69 | 74 73 20 6f 77 6e 20 63 | after i|ts own c|
|00003c50| 6f 64 65 20 77 68 65 6e | 20 68 61 6e 64 6c 69 6e |ode when| handlin|
|00003c60| 67 20 74 68 65 20 55 70 | 64 61 74 65 20 41 63 74 |g the Up|date Act|
|00003c70| 69 76 65 20 49 6e 70 75 | 74 20 41 72 65 61 20 65 |ive Inpu|t Area e|
|00003c80| 76 65 6e 74 20 28 6f 6e | 65 20 6f 66 20 74 68 65 |vent (on|e of the|
|00003c90| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 73 20 74 68 | Apple e|vents th|
|00003ca0| 61 74 20 69 73 20 73 65 | 6e 74 20 62 79 20 74 68 |at is se|nt by th|
|00003cb0| 65 20 69 6e 70 75 74 20 | 6d 65 74 68 6f 64 29 2e |e input |method).|
|00003cc0| 20 54 68 65 20 69 6e 74 | 65 72 66 61 63 65 73 20 | The int|erfaces |
|00003cd0| 61 6e 64 20 70 6f 73 73 | 69 62 6c 65 20 75 73 65 |and poss|ible use|
|00003ce0| 73 20 66 6f 72 20 62 6f | 74 68 20 72 6f 75 74 69 |s for bo|th routi|
|00003cf0| 6e 65 73 20 61 72 65 20 | 64 65 73 63 72 69 62 65 |nes are |describe|
|00003d00| 64 20 62 65 6c 6f 77 2e | 20 49 66 20 79 6f 75 20 |d below.| If you |
|00003d10| 64 6f 6e d5 74 20 68 61 | 76 65 20 72 6f 75 74 69 |don.t ha|ve routi|
|00003d20| 6e 65 73 20 74 68 61 74 | 20 54 53 4d 54 45 20 73 |nes that| TSMTE s|
|00003d30| 68 6f 75 6c 64 20 63 61 | 6c 6c 2c 20 73 65 74 20 |hould ca|ll, set |
|00003d40| 74 68 65 20 66 69 65 6c | 64 73 20 74 6f 20 6e 69 |the fiel|ds to ni|
|00003d50| 6c 2e 0d 54 68 65 20 75 | 70 64 61 74 65 46 6c 61 |l..The u|pdateFla|
|00003d60| 67 20 66 69 65 6c 64 20 | 69 73 20 69 6e 74 65 6e |g field |is inten|
|00003d70| 64 65 64 20 66 6f 72 20 | 63 75 73 74 6f 6d 69 7a |ded for |customiz|
|00003d80| 61 74 69 6f 6e 20 6f 66 | 20 54 53 4d 54 45 d5 73 |ation of| TSMTE.s|
|00003d90| 20 62 65 68 61 76 69 6f | 72 2e 20 54 68 65 20 69 | behavio|r. The i|
|00003da0| 64 65 61 20 69 73 20 74 | 68 61 74 20 54 53 4d 54 |dea is t|hat TSMT|
|00003db0| 45 20 63 61 6e 20 64 65 | 66 69 6e 65 20 73 65 76 |E can de|fine sev|
|00003dc0| 65 72 61 6c 20 63 6f 6e | 73 74 61 6e 74 73 20 66 |eral con|stants f|
|00003dd0| 6f 72 20 76 61 72 69 61 | 74 69 6f 6e 73 20 69 6e |or varia|tions in|
|00003de0| 20 69 74 73 20 62 65 68 | 61 76 69 6f 72 73 2c 20 | its beh|aviors, |
|00003df0| 61 6e 64 20 79 6f 75 20 | 73 75 6d 20 75 70 20 74 |and you |sum up t|
|00003e00| 68 65 20 63 6f 6e 73 74 | 61 6e 74 73 20 66 6f 72 |he const|ants for|
|00003e10| 20 74 68 65 20 76 61 72 | 69 61 74 69 6f 6e 73 20 | the var|iations |
|00003e20| 74 68 61 74 20 79 6f 75 | 20 6c 69 6b 65 20 61 6e |that you| like an|
|00003e30| 64 20 61 73 73 69 67 6e | 20 74 68 65 6d 20 74 6f |d assign| them to|
|00003e40| 20 74 68 65 20 75 70 64 | 61 74 65 46 6c 61 67 20 | the upd|ateFlag |
|00003e50| 66 69 65 6c 64 2e 20 43 | 75 72 72 65 6e 74 6c 79 |field. C|urrently|
|00003e60| 2c 20 6f 6e 6c 79 20 6f | 6e 65 20 73 75 63 68 20 |, only o|ne such |
|00003e70| 63 6f 6e 73 74 61 6e 74 | 2c 20 6b 54 53 4d 54 45 |constant|, kTSMTE|
|00003e80| 41 75 74 6f 53 63 72 6f | 6c 6c 2c 20 69 73 20 64 |AutoScro|ll, is d|
|00003e90| 65 66 69 6e 65 64 2e 20 | 49 74 20 73 70 65 63 69 |efined. |It speci|
|00003ea0| 66 69 65 73 20 74 68 61 | 74 20 54 53 4d 54 45 20 |fies tha|t TSMTE |
|00003eb0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 73 63 |automati|cally sc|
|00003ec0| 72 6f 6c 6c 73 20 74 68 | 65 20 73 65 6c 65 63 74 |rolls th|e select|
|00003ed0| 69 6f 6e 20 72 61 6e 67 | 65 20 69 6e 74 6f 20 76 |ion rang|e into v|
|00003ee0| 69 65 77 2e 20 49 66 20 | 79 6f 75 20 73 65 74 20 |iew. If |you set |
|00003ef0| 75 70 64 61 74 65 46 6c | 61 67 20 74 6f 20 30 2c |updateFl|ag to 0,|
|00003f00| 20 61 75 74 6f 6d 61 74 | 69 63 20 73 63 72 6f 6c | automat|ic scrol|
|00003f10| 6c 69 6e 67 20 69 73 20 | 64 69 73 61 62 6c 65 64 |ling is |disabled|
|00003f20| 2c 20 61 6e 64 20 79 6f | 75 20 68 61 76 65 20 74 |, and yo|u have t|
|00003f30| 6f 20 73 63 72 6f 6c 6c | 20 74 68 65 20 74 65 78 |o scroll| the tex|
|00003f40| 74 20 79 6f 75 72 73 65 | 6c 66 2c 20 65 2e 67 2e |t yourse|lf, e.g.|
|00003f50| 2c 20 69 6e 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |, in one| of the |
|00003f60| 63 61 6c 6c 2d 62 61 63 | 6b 20 72 6f 75 74 69 6e |call-bac|k routin|
|00003f70| 65 73 2e 0d 54 68 65 20 | 72 65 66 43 6f 6e 20 66 |es..The |refCon f|
|00003f80| 69 65 6c 64 20 6c 65 74 | 73 20 79 6f 75 20 73 70 |ield let|s you sp|
|00003f90| 65 63 69 66 79 20 61 20 | 76 61 6c 75 65 20 74 68 |ecify a |value th|
|00003fa0| 61 74 20 54 53 4d 54 45 | 20 77 69 6c 6c 20 70 61 |at TSMTE| will pa|
|00003fb0| 73 73 20 6f 6e 20 74 6f | 20 74 68 65 20 63 61 6c |ss on to| the cal|
|00003fc0| 6c 2d 62 61 63 6b 20 72 | 6f 75 74 69 6e 65 73 2e |l-back r|outines.|
|00003fd0| 20 54 53 4d 54 45 20 64 | 6f 65 73 6e d5 74 20 6d | TSMTE d|oesn.t m|
|00003fe0| 61 6b 65 20 61 6e 79 20 | 6f 74 68 65 72 20 75 73 |ake any |other us|
|00003ff0| 65 20 6f 66 20 74 68 69 | 73 20 66 69 65 6c 64 2e |e of thi|s field.|
|00004000| 0d 48 65 72 65 20 69 73 | 20 73 6f 6d 65 20 73 61 |.Here is| some sa|
|00004010| 6d 70 6c 65 20 63 6f 64 | 65 20 66 6f 72 20 63 72 |mple cod|e for cr|
|00004020| 65 61 74 69 6e 67 20 61 | 20 54 53 4d 44 6f 63 75 |eating a| TSMDocu|
|00004030| 6d 65 6e 74 2e 20 49 74 | 20 61 73 73 75 6d 65 73 |ment. It| assumes|
|00004040| 20 74 68 61 74 20 79 6f | 75 20 68 61 76 65 20 6a | that yo|u have j|
|00004050| 75 73 74 20 63 72 65 61 | 74 65 64 20 61 20 54 45 |ust crea|ted a TE|
|00004060| 48 61 6e 64 6c 65 20 63 | 61 6c 6c 65 64 20 64 6f |Handle c|alled do|
|00004070| 63 54 45 48 61 6e 64 6c | 65 2c 20 61 6e 64 20 74 |cTEHandl|e, and t|
|00004080| 68 61 74 20 61 20 42 6f | 6f 6c 65 61 6e 20 76 61 |hat a Bo|olean va|
|00004090| 72 69 61 62 6c 65 20 67 | 6f 6f 64 20 69 73 20 75 |riable g|ood is u|
|000040a0| 73 65 64 20 74 6f 20 69 | 6e 64 69 63 61 74 65 20 |sed to i|ndicate |
|000040b0| 77 68 65 74 68 65 72 20 | 6f 70 65 72 61 74 69 6f |whether |operatio|
|000040c0| 6e 73 20 61 72 65 20 73 | 75 63 63 65 73 73 66 75 |ns are s|uccessfu|
|000040d0| 6c 2c 20 61 6e 64 20 74 | 68 61 74 20 79 6f 75 20 |l, and t|hat you |
|000040e0| 77 61 6e 74 20 74 6f 20 | 70 61 73 73 20 61 20 70 |want to |pass a p|
|000040f0| 6f 69 6e 74 65 72 20 74 | 6f 20 74 68 65 20 64 6f |ointer t|o the do|
|00004100| 63 75 6d 65 6e 74 20 77 | 69 6e 64 6f 77 20 74 6f |cument w|indow to|
|00004110| 20 79 6f 75 72 20 63 61 | 6c 6c 2d 62 61 63 6b 20 | your ca|ll-back |
|00004120| 72 6f 75 74 69 6e 65 2e | 0d 69 66 20 28 67 6f 6f |routine.|.if (goo|
|00004130| 64 20 26 26 20 67 48 61 | 73 54 53 4d 54 45 29 0d |d && gHa|sTSMTE).|
|00004140| 7b 0d 09 73 75 70 70 6f | 72 74 65 64 49 6e 74 65 |{..suppo|rtedInte|
|00004150| 72 66 61 63 65 73 5b 30 | 5d 20 3d 20 6b 54 53 4d |rfaces[0|] = kTSM|
|00004160| 54 45 49 6e 74 65 72 66 | 61 63 65 54 79 70 65 3b |TEInterf|aceType;|
|00004170| 0d 09 69 66 20 28 4e 65 | 77 54 53 4d 44 6f 63 75 |..if (Ne|wTSMDocu|
|00004180| 6d 65 6e 74 28 31 2c 20 | 73 75 70 70 6f 72 74 65 |ment(1, |supporte|
|00004190| 64 49 6e 74 65 72 66 61 | 63 65 73 2c 20 26 64 6f |dInterfa|ces, &do|
|000041a0| 63 2d 3e 64 6f 63 54 53 | 4d 44 6f 63 2c 0d 09 09 |c->docTS|MDoc,...|
|000041b0| 09 09 28 6c 6f 6e 67 29 | 20 26 64 6f 63 2d 3e 64 |..(long)| &doc->d|
|000041c0| 6f 63 54 53 4d 54 45 52 | 65 63 48 61 6e 64 6c 65 |ocTSMTER|ecHandle|
|000041d0| 29 20 3d 3d 20 6e 6f 45 | 72 72 29 0d 09 7b 0d 09 |) == noE|rr)..{..|
|000041e0| 09 54 53 4d 54 45 52 65 | 63 50 74 72 20 74 73 6d |.TSMTERe|cPtr tsm|
|000041f0| 74 65 52 65 63 50 74 72 | 20 3d 20 2a 28 64 6f 63 |teRecPtr| = *(doc|
|00004200| 2d 3e 64 6f 63 54 53 4d | 54 45 52 65 63 48 61 6e |->docTSM|TERecHan|
|00004210| 64 6c 65 29 3b 0d 09 09 | 0d 09 09 74 73 6d 74 65 |dle);...|...tsmte|
|00004220| 52 65 63 50 74 72 2d 3e | 74 65 78 74 48 20 3d 20 |RecPtr->|textH = |
|00004230| 64 6f 63 2d 3e 64 6f 63 | 54 45 3b 0d 09 09 74 73 |doc->doc|TE;...ts|
|00004240| 6d 74 65 52 65 63 50 74 | 72 2d 3e 70 72 65 55 70 |mteRecPt|r->preUp|
|00004250| 64 61 74 65 50 72 6f 63 | 20 3d 20 67 54 53 4d 54 |dateProc| = gTSMT|
|00004260| 45 50 72 65 55 70 64 61 | 74 65 55 50 50 3b 0d 09 |EPreUpda|teUPP;..|
|00004270| 09 74 73 6d 74 65 52 65 | 63 50 74 72 2d 3e 70 6f |.tsmteRe|cPtr->po|
|00004280| 73 74 55 70 64 61 74 65 | 50 72 6f 63 20 3d 20 67 |stUpdate|Proc = g|
|00004290| 54 53 4d 54 45 50 6f 73 | 74 55 70 64 61 74 65 55 |TSMTEPos|tUpdateU|
|000042a0| 50 50 3b 0d 09 09 74 73 | 6d 74 65 52 65 63 50 74 |PP;...ts|mteRecPt|
|000042b0| 72 2d 3e 75 70 64 61 74 | 65 46 6c 61 67 20 3d 20 |r->updat|eFlag = |
|000042c0| 6b 54 53 4d 54 45 41 75 | 74 6f 53 63 72 6f 6c 6c |kTSMTEAu|toScroll|
|000042d0| 3b 0d 09 09 74 73 6d 74 | 65 52 65 63 50 74 72 2d |;...tsmt|eRecPtr-|
|000042e0| 3e 72 65 66 43 6f 6e 20 | 3d 20 28 6c 6f 6e 67 29 |>refCon |= (long)|
|000042f0| 20 77 69 6e 64 6f 77 3b | 0d 09 7d 0d 09 65 6c 73 | window;|..}..els|
|00004300| 65 0d 09 09 67 6f 6f 64 | 20 3d 20 66 61 6c 73 65 |e...good| = false|
|00004310| 3b 0d 7d 3b 0d 59 6f 75 | 20 73 68 6f 75 6c 64 6e |;.};.You| shouldn|
|00004320| d5 74 20 64 69 73 70 6f | 73 65 20 6f 66 20 74 68 |.t dispo|se of th|
|00004330| 65 20 54 53 4d 54 45 52 | 65 63 48 61 6e 64 6c 65 |e TSMTER|ecHandle|
|00004340| 20 d0 20 44 65 6c 65 74 | 65 54 53 4d 44 6f 63 75 | . Delet|eTSMDocu|
|00004350| 6d 65 6e 74 20 77 69 6c | 6c 20 64 6f 20 74 68 69 |ment wil|l do thi|
|00004360| 73 20 66 6f 72 20 79 6f | 75 2e 0d 55 73 69 6e 67 |s for yo|u..Using|
|00004370| 20 61 20 50 72 65 2d 55 | 70 64 61 74 65 20 43 61 | a Pre-U|pdate Ca|
|00004380| 6c 6c 2d 42 61 63 6b 20 | 52 6f 75 74 69 6e 65 0d |ll-Back |Routine.|
|00004390| 50 72 65 2d 75 70 64 61 | 74 65 20 63 61 6c 6c 2d |Pre-upda|te call-|
|000043a0| 62 61 63 6b 20 72 6f 75 | 74 69 6e 65 73 20 66 6f |back rou|tines fo|
|000043b0| 72 20 54 53 4d 54 45 20 | 68 61 76 65 20 74 68 65 |r TSMTE |have the|
|000043c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 6e 74 65 72 | followi|ng inter|
|000043d0| 66 61 63 65 3a 0d 70 61 | 73 63 61 6c 20 76 6f 69 |face:.pa|scal voi|
|000043e0| 64 20 4d 79 54 53 4d 54 | 45 50 72 65 55 70 64 61 |d MyTSMT|EPreUpda|
|000043f0| 74 65 50 72 6f 63 28 54 | 45 48 61 6e 64 6c 65 20 |teProc(T|EHandle |
|00004400| 74 65 78 74 48 2c 20 6c | 6f 6e 67 20 72 65 66 43 |textH, l|ong refC|
|00004410| 6f 6e 29 3b 0d 49 66 20 | 79 6f 75 20 70 72 6f 76 |on);.If |you prov|
|00004420| 69 64 65 20 61 20 70 72 | 65 2d 75 70 64 61 74 65 |ide a pr|e-update|
|00004430| 20 72 6f 75 74 69 6e 65 | 20 66 6f 72 20 61 20 54 | routine| for a T|
|00004440| 53 4d 20 64 6f 63 75 6d | 65 6e 74 2c 20 69 74 20 |SM docum|ent, it |
|00004450| 69 73 20 63 61 6c 6c 65 | 64 20 62 65 66 6f 72 65 |is calle|d before|
|00004460| 20 54 53 4d 54 45 d5 73 | 20 63 6f 64 65 20 66 6f | TSMTE.s| code fo|
|00004470| 72 20 68 61 6e 64 6c 69 | 6e 67 20 74 68 65 20 55 |r handli|ng the U|
|00004480| 70 64 61 74 65 20 41 63 | 74 69 76 65 20 49 6e 70 |pdate Ac|tive Inp|
|00004490| 75 74 20 41 72 65 61 20 | 65 76 65 6e 74 73 20 72 |ut Area |events r|
|000044a0| 65 6c 61 74 69 6e 67 20 | 74 6f 20 74 68 69 73 20 |elating |to this |
|000044b0| 64 6f 63 75 6d 65 6e 74 | 2e 0d 54 68 65 20 76 61 |document|..The va|
|000044c0| 6c 75 65 73 20 66 6f 72 | 20 74 68 65 20 74 65 78 |lues for| the tex|
|000044d0| 74 48 20 61 6e 64 20 72 | 65 66 43 6f 6e 20 61 72 |tH and r|efCon ar|
|000044e0| 67 75 6d 65 6e 74 73 20 | 61 72 65 20 74 61 6b 65 |guments |are take|
|000044f0| 6e 20 66 72 6f 6d 20 74 | 68 65 20 54 53 4d 54 45 |n from t|he TSMTE|
|00004500| 52 65 63 48 61 6e 64 6c | 65 20 6f 66 20 74 68 65 |RecHandl|e of the|
|00004510| 20 54 53 4d 20 64 6f 63 | 75 6d 65 6e 74 2e 0d 4f | TSM doc|ument..O|
|00004520| 6e 65 20 63 6f 6d 6d 6f | 6e 20 75 73 65 20 6f 66 |ne commo|n use of|
|00004530| 20 74 68 65 20 70 72 65 | 2d 75 70 64 61 74 65 20 | the pre|-update |
|00004540| 72 6f 75 74 69 6e 65 20 | 69 73 20 74 6f 20 73 61 |routine |is to sa|
|00004550| 76 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |ve infor|mation t|
|00004560| 68 61 74 20 77 69 6c 6c | 20 62 65 20 6e 65 65 64 |hat will| be need|
|00004570| 65 64 20 66 6f 72 20 55 | 6e 64 6f 20 61 6e 64 20 |ed for U|ndo and |
|00004580| 52 65 64 6f 2e 20 57 69 | 74 68 6f 75 74 20 69 6e |Redo. Wi|thout in|
|00004590| 6c 69 6e 65 20 69 6e 70 | 75 74 2c 20 61 6e 20 61 |line inp|ut, an a|
|000045a0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 79 70 69 63 |pplicati|on typic|
|000045b0| 61 6c 6c 79 20 74 72 65 | 61 74 73 20 61 6e 20 75 |ally tre|ats an u|
|000045c0| 6e 69 6e 74 65 72 72 75 | 70 74 65 64 20 73 65 71 |ninterru|pted seq|
|000045d0| 75 65 6e 63 65 20 6f 66 | 20 6b 65 79 44 6f 77 6e |uence of| keyDown|
|000045e0| 20 65 76 65 6e 74 73 20 | 28 6f 74 68 65 72 20 74 | events |(other t|
|000045f0| 68 61 6e 20 61 72 72 6f | 77 20 6f 72 20 66 75 6e |han arro|w or fun|
|00004600| 63 74 69 6f 6e 20 6b 65 | 79 73 29 20 61 73 20 6f |ction ke|ys) as o|
|00004610| 6e 65 20 61 63 74 69 6f | 6e 2c 20 61 6e 64 20 73 |ne actio|n, and s|
|00004620| 61 76 65 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |aves the| current|
|00004630| 6c 79 20 73 65 6c 65 63 | 74 65 64 20 74 65 78 74 |ly selec|ted text|
|00004640| 20 61 6e 64 20 72 65 6c | 61 74 65 64 20 69 6e 66 | and rel|ated inf|
|00004650| 6f 72 6d 61 74 69 6f 6e | 20 77 68 65 6e 20 72 65 |ormation| when re|
|00004660| 63 65 69 76 69 6e 67 20 | 74 68 65 20 66 69 72 73 |ceiving |the firs|
|00004670| 74 20 65 76 65 6e 74 20 | 69 6e 20 74 68 69 73 20 |t event |in this |
|00004680| 73 65 71 75 65 6e 63 65 | 2e 20 49 6e 20 74 68 69 |sequence|. In thi|
|00004690| 73 20 72 65 67 61 72 64 | 2c 20 79 6f 75 20 73 68 |s regard|, you sh|
|000046a0| 6f 75 6c 64 20 74 72 65 | 61 74 20 61 20 63 61 6c |ould tre|at a cal|
|000046b0| 6c 20 74 6f 20 79 6f 75 | 72 20 70 72 65 2d 75 70 |l to you|r pre-up|
|000046c0| 64 61 74 65 20 72 6f 75 | 74 69 6e 65 20 61 73 20 |date rou|tine as |
|000046d0| 6a 75 73 74 20 61 6e 6f | 74 68 65 72 20 66 6f 72 |just ano|ther for|
|000046e0| 6d 20 6f 66 20 74 79 70 | 69 6e 67 2c 20 61 6e 64 |m of typ|ing, and|
|000046f0| 20 69 66 20 69 74 d5 73 | 20 74 68 65 20 66 69 72 | if it.s| the fir|
|00004700| 73 74 20 6f 6e 65 20 69 | 6e 20 61 20 74 79 70 69 |st one i|n a typi|
|00004710| 6e 67 20 73 65 71 75 65 | 6e 63 65 2c 20 73 61 76 |ng seque|nce, sav|
|00004720| 65 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |e the in|formatio|
|00004730| 6e 20 66 6f 72 20 55 6e | 64 6f 2e 0d 41 6e 6f 74 |n for Un|do..Anot|
|00004740| 68 65 72 20 75 73 65 20 | 69 73 20 74 6f 20 77 6f |her use |is to wo|
|00004750| 72 6b 20 61 72 6f 75 6e | 64 20 61 20 62 75 67 20 |rk aroun|d a bug |
|00004760| 69 6e 20 54 53 4d 54 45 | 20 31 2e 30 2c 20 77 68 |in TSMTE| 1.0, wh|
|00004770| 69 63 68 20 64 6f 65 73 | 6e d5 74 20 61 6c 77 61 |ich does|n.t alwa|
|00004780| 79 73 20 73 79 6e 63 68 | 72 6f 6e 69 7a 65 20 74 |ys synch|ronize t|
|00004790| 68 65 20 66 6f 6e 74 20 | 74 6f 20 62 65 20 75 73 |he font |to be us|
|000047a0| 65 64 20 77 69 74 68 20 | 74 68 65 20 63 75 72 72 |ed with |the curr|
|000047b0| 65 6e 74 20 6b 65 79 62 | 6f 61 72 64 20 73 63 72 |ent keyb|oard scr|
|000047c0| 69 70 74 2e 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ipt. The| followi|
|000047d0| 6e 67 20 72 6f 75 74 69 | 6e 65 20 63 68 65 63 6b |ng routi|ne check|
|000047e0| 73 20 77 68 65 74 68 65 | 72 20 74 68 65 20 63 75 |s whethe|r the cu|
|000047f0| 72 72 65 6e 74 20 66 6f | 6e 74 20 63 61 6e 20 64 |rrent fo|nt can d|
|00004800| 69 73 70 6c 61 79 20 74 | 68 65 20 69 6e 63 6f 6d |isplay t|he incom|
|00004810| 69 6e 67 20 63 68 61 72 | 61 63 74 65 72 73 2c 20 |ing char|acters, |
|00004820| 61 6e 64 20 69 66 20 6e | 6f 74 2c 20 73 65 74 73 |and if n|ot, sets|
|00004830| 20 74 68 65 20 66 6f 6e | 74 20 74 6f 20 74 68 65 | the fon|t to the|
|00004840| 20 6b 65 79 62 6f 61 72 | 64 20 73 63 72 69 70 74 | keyboar|d script|
|00004850| d5 73 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 66 |.s appli|cation f|
|00004860| 6f 6e 74 2e 20 41 20 62 | 65 74 74 65 72 20 73 6f |ont. A b|etter so|
|00004870| 6c 75 74 69 6f 6e 20 77 | 6f 75 6c 64 20 62 65 20 |lution w|ould be |
|00004880| 74 6f 20 73 63 61 6e 20 | 74 68 65 20 74 65 78 74 |to scan |the text|
|00004890| 20 62 61 63 6b 77 61 72 | 64 73 20 66 6f 72 20 74 | backwar|ds for t|
|000048a0| 68 65 20 6d 6f 73 74 20 | 72 65 63 65 6e 74 6c 79 |he most |recently|
|000048b0| 20 75 73 65 64 20 66 6f | 6e 74 20 6f 66 20 74 68 | used fo|nt of th|
|000048c0| 65 20 6b 65 79 62 6f 61 | 72 64 20 73 63 72 69 70 |e keyboa|rd scrip|
|000048d0| 74 2e 20 54 68 69 73 20 | 73 6f 6c 75 74 69 6f 6e |t. This |solution|
|000048e0| 20 77 69 6c 6c 20 62 65 | 20 75 73 65 64 20 62 79 | will be| used by|
|000048f0| 20 66 75 74 75 72 65 20 | 76 65 72 73 69 6f 6e 73 | future |versions|
|00004900| 20 6f 66 20 54 53 4d 54 | 45 2c 20 73 6f 20 6d 61 | of TSMT|E, so ma|
|00004910| 6b 65 20 73 75 72 65 20 | 74 6f 20 63 68 65 63 6b |ke sure |to check|
|00004920| 20 74 68 65 20 54 53 4d | 54 45 20 76 65 72 73 69 | the TSM|TE versi|
|00004930| 6f 6e 20 61 6e 64 20 75 | 73 65 20 74 68 65 20 77 |on and u|se the w|
|00004940| 6f 72 6b 61 72 6f 75 6e | 64 20 6f 6e 6c 79 20 66 |orkaroun|d only f|
|00004950| 6f 72 20 54 53 4d 54 45 | 20 31 2e 30 2c 20 61 73 |or TSMTE| 1.0, as|
|00004960| 20 73 68 6f 77 6e 20 62 | 65 6c 6f 77 2e 20 54 68 | shown b|elow. Th|
|00004970| 65 20 73 79 6e 63 68 72 | 6f 6e 69 7a 61 74 69 6f |e synchr|onizatio|
|00004980| 6e 20 69 73 20 6f 6e 6c | 79 20 6e 65 63 65 73 73 |n is onl|y necess|
|00004990| 61 72 79 20 77 68 65 6e | 20 61 20 6e 65 77 20 61 |ary when| a new a|
|000049a0| 63 74 69 76 65 20 69 6e | 70 75 74 20 61 72 65 61 |ctive in|put area|
|000049b0| 20 69 73 20 63 72 65 61 | 74 65 64 2c 20 73 6f 20 | is crea|ted, so |
|000049c0| 79 6f 75 20 6d 61 79 20 | 77 61 6e 74 20 74 6f 20 |you may |want to |
|000049d0| 75 73 65 20 74 68 65 20 | 70 6f 73 74 2d 75 70 64 |use the |post-upd|
|000049e0| 61 74 65 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 74 |ate rout|ine to t|
|000049f0| 72 61 63 6b 20 77 68 65 | 74 68 65 72 20 74 68 65 |rack whe|ther the|
|00004a00| 72 65 20 69 73 20 61 6e | 20 61 63 74 69 76 65 20 |re is an| active |
|00004a10| 69 6e 70 75 74 20 61 72 | 65 61 20 61 6e 64 20 6f |input ar|ea and o|
|00004a20| 6e 6c 79 20 65 78 65 63 | 75 74 65 20 74 68 65 20 |nly exec|ute the |
|00004a30| 66 6f 6e 74 20 73 79 6e | 63 68 72 6f 6e 69 7a 61 |font syn|chroniza|
|00004a40| 74 69 6f 6e 20 63 6f 64 | 65 20 77 68 65 6e 20 74 |tion cod|e when t|
|00004a50| 68 65 20 70 72 65 2d 75 | 70 64 61 74 65 20 72 6f |he pre-u|pdate ro|
|00004a60| 75 74 69 6e 65 20 69 73 | 20 63 61 6c 6c 65 64 20 |utine is| called |
|00004a70| 77 68 69 6c 65 20 74 68 | 65 72 65 d5 73 20 6e 6f |while th|ere.s no|
|00004a80| 20 61 63 74 69 76 65 20 | 69 6e 70 75 74 20 61 72 | active |input ar|
|00004a90| 65 61 2e 0d 73 74 61 74 | 69 63 20 70 61 73 63 61 |ea..stat|ic pasca|
|00004aa0| 6c 20 76 6f 69 64 20 4d | 79 54 53 4d 54 45 50 72 |l void M|yTSMTEPr|
|00004ab0| 65 55 70 64 61 74 65 50 | 72 6f 63 28 54 45 48 61 |eUpdateP|roc(TEHa|
|00004ac0| 6e 64 6c 65 20 74 65 78 | 74 48 2c 20 6c 6f 6e 67 |ndle tex|tH, long|
|00004ad0| 20 72 65 66 43 6f 6e 29 | 0d 7b 0d 09 6c 6f 6e 67 | refCon)|.{..long|
|00004ae0| 20 72 65 73 70 6f 6e 73 | 65 3b 0d 09 53 63 72 69 | respons|e;..Scri|
|00004af0| 70 74 43 6f 64 65 20 6b | 65 79 62 6f 61 72 64 53 |ptCode k|eyboardS|
|00004b00| 63 72 69 70 74 3b 0d 09 | 73 68 6f 72 74 20 6d 6f |cript;..|short mo|
|00004b10| 64 65 3b 0d 09 54 65 78 | 74 53 74 79 6c 65 20 74 |de;..Tex|tStyle t|
|00004b20| 68 65 53 74 79 6c 65 3b | 0d 09 0d 09 69 66 20 28 |heStyle;|....if (|
|00004b30| 28 47 65 73 74 61 6c 74 | 28 67 65 73 74 61 6c 74 |(Gestalt|(gestalt|
|00004b40| 54 53 4d 54 45 56 65 72 | 73 69 6f 6e 2c 20 26 72 |TSMTEVer|sion, &r|
|00004b50| 65 73 70 6f 6e 73 65 29 | 20 3d 3d 20 6e 6f 45 72 |esponse)| == noEr|
|00004b60| 72 29 20 26 26 0d 09 09 | 20 28 72 65 73 70 6f 6e |r) &&...| (respon|
|00004b70| 73 65 20 3d 3d 20 67 65 | 73 74 61 6c 74 54 53 4d |se == ge|staltTSM|
|00004b80| 54 45 31 29 29 0d 09 7b | 0d 09 09 6b 65 79 62 6f |TE1))..{|...keybo|
|00004b90| 61 72 64 53 63 72 69 70 | 74 20 3d 20 47 65 74 53 |ardScrip|t = GetS|
|00004ba0| 63 72 69 70 74 4d 61 6e | 61 67 65 72 56 61 72 69 |criptMan|agerVari|
|00004bb0| 61 62 6c 65 28 73 6d 4b | 65 79 53 63 72 69 70 74 |able(smK|eyScript|
|00004bc0| 29 3b 0d 09 09 6d 6f 64 | 65 20 3d 20 64 6f 46 6f |);...mod|e = doFo|
|00004bd0| 6e 74 3b 0d 09 09 69 66 | 20 28 21 28 54 45 43 6f |nt;...if| (!(TECo|
|00004be0| 6e 74 69 6e 75 6f 75 73 | 53 74 79 6c 65 28 26 6d |ntinuous|Style(&m|
|00004bf0| 6f 64 65 2c 20 26 74 68 | 65 53 74 79 6c 65 2c 20 |ode, &th|eStyle, |
|00004c00| 74 65 78 74 48 29 20 26 | 26 0d 09 09 09 09 46 6f |textH) &|&.....Fo|
|00004c10| 6e 74 54 6f 53 63 72 69 | 70 74 28 74 68 65 53 74 |ntToScri|pt(theSt|
|00004c20| 79 6c 65 2e 74 73 46 6f | 6e 74 29 20 3d 3d 20 6b |yle.tsFo|nt) == k|
|00004c30| 65 79 62 6f 61 72 64 53 | 63 72 69 70 74 29 29 0d |eyboardS|cript)).|
|00004c40| 09 09 7b 0d 09 09 09 74 | 68 65 53 74 79 6c 65 2e |..{....t|heStyle.|
|00004c50| 74 73 46 6f 6e 74 20 3d | 20 47 65 74 53 63 72 69 |tsFont =| GetScri|
|00004c60| 70 74 56 61 72 69 61 62 | 6c 65 28 6b 65 79 62 6f |ptVariab|le(keybo|
|00004c70| 61 72 64 53 63 72 69 70 | 74 2c 20 73 6d 53 63 72 |ardScrip|t, smScr|
|00004c80| 69 70 74 41 70 70 46 6f | 6e 64 29 3b 0d 09 09 09 |iptAppFo|nd);....|
|00004c90| 54 45 53 65 74 53 74 79 | 6c 65 28 64 6f 46 6f 6e |TESetSty|le(doFon|
|00004ca0| 74 2c 20 26 74 68 65 53 | 74 79 6c 65 2c 20 66 61 |t, &theS|tyle, fa|
|00004cb0| 6c 73 65 2c 20 74 65 78 | 74 48 29 3b 0d 09 09 7d |lse, tex|tH);...}|
|00004cc0| 3b 0d 09 7d 3b 0d 7d 0d | 4e 6f 74 65 3a 09 44 65 |;..};.}.|Note:.De|
|00004cd0| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 77 68 69 63 68 |pending |on which|
|00004ce0| 20 69 6e 74 65 72 66 61 | 63 65 20 66 69 6c 65 73 | interfa|ce files|
|00004cf0| 20 79 6f 75 20 75 73 65 | 2c 20 79 6f 75 20 6d 61 | you use|, you ma|
|00004d00| 79 20 68 61 76 65 20 74 | 6f 20 75 73 65 20 74 68 |y have t|o use th|
|00004d10| 65 20 6f 6c 64 20 6e 61 | 6d 65 20 47 65 74 45 6e |e old na|me GetEn|
|00004d20| 76 69 72 6f 6e 73 20 69 | 6e 73 74 65 61 64 20 6f |virons i|nstead o|
|00004d30| 66 20 74 68 65 20 6e 65 | 77 20 47 65 74 53 63 72 |f the ne|w GetScr|
|00004d40| 69 70 74 4d 61 6e 61 67 | 65 72 56 61 72 69 61 62 |iptManag|erVariab|
|00004d50| 6c 65 2c 20 62 65 63 61 | 75 73 65 20 74 68 65 72 |le, beca|use ther|
|00004d60| 65 d5 73 20 6e 6f 20 63 | 6f 72 72 65 63 74 20 64 |e.s no c|orrect d|
|00004d70| 65 63 6c 61 72 61 74 69 | 6f 6e 20 66 6f 72 20 74 |eclarati|on for t|
|00004d80| 68 65 20 6e 65 77 20 6e | 61 6d 65 2e 20 54 68 65 |he new n|ame. The|
|00004d90| 20 75 6e 69 76 65 72 73 | 61 6c 20 69 6e 74 65 72 | univers|al inter|
|00004da0| 66 61 63 65 73 20 68 61 | 76 65 20 61 20 63 6f 72 |faces ha|ve a cor|
|00004db0| 72 65 63 74 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |rect dec|laration|
|00004dc0| 2e 0d 49 66 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |..If you|r applic|
|00004dd0| 61 74 69 6f 6e 20 6f 63 | 63 61 73 69 6f 6e 61 6c |ation oc|casional|
|00004de0| 6c 79 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 6f |ly chang|es the o|
|00004df0| 72 69 67 69 6e 20 6f 66 | 20 74 68 65 20 54 65 78 |rigin of| the Tex|
|00004e00| 74 45 64 69 74 20 72 65 | 63 6f 72 64 d5 73 20 67 |tEdit re|cord.s g|
|00004e10| 72 61 66 50 6f 72 74 2c | 20 79 6f 75 20 63 61 6e |rafPort,| you can|
|00004e20| 20 61 6c 73 6f 20 75 73 | 65 20 74 68 65 20 70 72 | also us|e the pr|
|00004e30| 65 2d 75 70 64 61 74 65 | 20 72 6f 75 74 69 6e 65 |e-update| routine|
|00004e40| 20 74 6f 20 72 65 73 65 | 74 20 74 68 65 20 6f 72 | to rese|t the or|
|00004e50| 69 67 69 6e 20 73 6f 20 | 74 68 61 74 20 63 68 61 |igin so |that cha|
|00004e60| 72 61 63 74 65 72 73 20 | 67 65 74 20 64 72 61 77 |racters |get draw|
|00004e70| 6e 20 69 6e 20 74 68 65 | 20 72 69 67 68 74 20 6c |n in the| right l|
|00004e80| 6f 63 61 74 69 6f 6e 2e | 0d 55 73 69 6e 67 20 61 |ocation.|.Using a|
|00004e90| 20 50 6f 73 74 2d 55 70 | 64 61 74 65 20 43 61 6c | Post-Up|date Cal|
|00004ea0| 6c 2d 42 61 63 6b 20 52 | 6f 75 74 69 6e 65 0d 50 |l-Back R|outine.P|
|00004eb0| 6f 73 74 2d 75 70 64 61 | 74 65 20 63 61 6c 6c 2d |ost-upda|te call-|
|00004ec0| 62 61 63 6b 20 72 6f 75 | 74 69 6e 65 73 20 66 6f |back rou|tines fo|
|00004ed0| 72 20 54 53 4d 54 45 20 | 68 61 76 65 20 74 68 65 |r TSMTE |have the|
|00004ee0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 6e 74 65 72 | followi|ng inter|
|00004ef0| 66 61 63 65 3a 0d 70 61 | 73 63 61 6c 20 76 6f 69 |face:.pa|scal voi|
|00004f00| 64 20 4d 79 54 53 4d 54 | 45 50 6f 73 74 55 70 64 |d MyTSMT|EPostUpd|
|00004f10| 61 74 65 50 72 6f 63 28 | 54 45 48 61 6e 64 6c 65 |ateProc(|TEHandle|
|00004f20| 20 74 65 78 74 48 2c 20 | 6c 6f 6e 67 20 66 69 78 | textH, |long fix|
|00004f30| 4c 65 6e 2c 0d 09 09 09 | 6c 6f 6e 67 20 69 6e 70 |Len,....|long inp|
|00004f40| 75 74 41 72 65 61 53 74 | 61 72 74 2c 20 6c 6f 6e |utAreaSt|art, lon|
|00004f50| 67 20 69 6e 70 75 74 41 | 72 65 61 45 6e 64 2c 0d |g inputA|reaEnd,.|
|00004f60| 09 09 09 6c 6f 6e 67 20 | 70 69 6e 53 74 61 72 74 |...long |pinStart|
|00004f70| 2c 20 6c 6f 6e 67 20 70 | 69 6e 45 6e 64 2c 20 6c |, long p|inEnd, l|
|00004f80| 6f 6e 67 20 72 65 66 43 | 6f 6e 29 3b 0d 49 66 20 |ong refC|on);.If |
|00004f90| 79 6f 75 20 70 72 6f 76 | 69 64 65 20 61 20 70 6f |you prov|ide a po|
|00004fa0| 73 74 2d 75 70 64 61 74 | 65 20 72 6f 75 74 69 6e |st-updat|e routin|
|00004fb0| 65 20 66 6f 72 20 61 20 | 54 53 4d 20 64 6f 63 75 |e for a |TSM docu|
|00004fc0| 6d 65 6e 74 2c 20 69 74 | 20 69 73 20 63 61 6c 6c |ment, it| is call|
|00004fd0| 65 64 20 61 66 74 65 72 | 20 54 53 4d 54 45 d5 73 |ed after| TSMTE.s|
|00004fe0| 20 63 6f 64 65 20 66 6f | 72 20 68 61 6e 64 6c 69 | code fo|r handli|
|00004ff0| 6e 67 20 55 70 64 61 74 | 65 20 41 63 74 69 76 65 |ng Updat|e Active|
|00005000| 20 49 6e 70 75 74 20 41 | 72 65 61 20 65 76 65 6e | Input A|rea even|
|00005010| 74 73 20 72 65 6c 61 74 | 69 6e 67 20 74 6f 20 74 |ts relat|ing to t|
|00005020| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 2e 20 49 66 |his docu|ment. If|
|00005030| 20 79 6f 75 20 68 61 76 | 65 20 73 65 74 20 74 68 | you hav|e set th|
|00005040| 65 20 75 70 64 61 74 65 | 46 6c 61 67 20 66 69 65 |e update|Flag fie|
|00005050| 6c 64 20 69 6e 20 74 68 | 65 20 54 53 4d 54 45 52 |ld in th|e TSMTER|
|00005060| 65 63 20 72 65 63 6f 72 | 64 20 74 6f 20 6b 54 53 |ec recor|d to kTS|
|00005070| 4d 54 45 41 75 74 6f 53 | 63 72 6f 6c 6c 2c 20 54 |MTEAutoS|croll, T|
|00005080| 53 4d 54 45 20 63 61 6c | 6c 73 20 74 68 65 20 63 |SMTE cal|ls the c|
|00005090| 61 6c 6c 2d 62 61 63 6b | 20 72 6f 75 74 69 6e 65 |all-back| routine|
|000050a0| 20 66 69 72 73 74 2c 20 | 61 6e 64 20 74 68 65 6e | first, |and then|
|000050b0| 20 73 63 72 6f 6c 6c 73 | 20 74 68 65 20 73 65 6c | scrolls| the sel|
|000050c0| 65 63 74 69 6f 6e 20 72 | 61 6e 67 65 20 69 6e 74 |ection r|ange int|
|000050d0| 6f 20 76 69 65 77 2e 0d | 54 68 65 20 76 61 6c 75 |o view..|The valu|
|000050e0| 65 73 20 66 6f 72 20 74 | 68 65 20 74 65 78 74 48 |es for t|he textH|
|000050f0| 20 61 6e 64 20 72 65 66 | 43 6f 6e 20 61 72 67 75 | and ref|Con argu|
|00005100| 6d 65 6e 74 73 20 61 72 | 65 20 74 61 6b 65 6e 20 |ments ar|e taken |
|00005110| 66 72 6f 6d 20 74 68 65 | 20 54 53 4d 54 45 52 65 |from the| TSMTERe|
|00005120| 63 48 61 6e 64 6c 65 20 | 6f 66 20 74 68 65 20 54 |cHandle |of the T|
|00005130| 53 4d 20 64 6f 63 75 6d | 65 6e 74 2e 20 49 6e 70 |SM docum|ent. Inp|
|00005140| 75 74 41 72 65 61 53 74 | 61 72 74 20 61 6e 64 20 |utAreaSt|art and |
|00005150| 69 6e 70 75 74 41 72 65 | 61 45 6e 64 20 61 72 65 |inputAre|aEnd are|
|00005160| 20 74 68 65 20 6f 66 66 | 73 65 74 73 20 6f 66 20 | the off|sets of |
|00005170| 74 68 65 20 73 74 61 72 | 74 20 61 6e 64 20 65 6e |the star|t and en|
|00005180| 64 20 6f 66 20 74 68 65 | 20 61 63 74 69 76 65 20 |d of the| active |
|00005190| 69 6e 70 75 74 20 61 72 | 65 61 20 72 65 6c 61 74 |input ar|ea relat|
|000051a0| 69 76 65 20 74 6f 20 74 | 68 65 20 65 6e 74 69 72 |ive to t|he entir|
|000051b0| 65 20 74 65 78 74 20 68 | 61 6e 64 6c 65 3b 20 74 |e text h|andle; t|
|000051c0| 68 65 79 20 61 72 65 20 | 62 6f 74 68 20 73 65 74 |hey are |both set|
|000051d0| 20 74 6f 20 2d 31 20 69 | 66 20 74 68 65 72 65 20 | to -1 i|f there |
|000051e0| 69 73 20 6e 6f 20 61 63 | 74 69 76 65 20 69 6e 70 |is no ac|tive inp|
|000051f0| 75 74 20 61 72 65 61 2e | 20 54 68 65 20 72 65 6d |ut area.| The rem|
|00005200| 61 69 6e 69 6e 67 20 70 | 61 72 61 6d 65 74 65 72 |aining p|arameter|
|00005210| 73 20 61 72 65 20 61 20 | 73 75 62 73 65 74 20 6f |s are a |subset o|
|00005220| 66 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |f the pa|rameters|
|00005230| 20 66 6f 72 20 74 68 65 | 20 55 70 64 61 74 65 20 | for the| Update |
|00005240| 41 63 74 69 76 65 20 49 | 6e 70 75 74 20 41 72 65 |Active I|nput Are|
|00005250| 61 20 65 76 65 6e 74 2e | 20 54 68 65 20 66 69 78 |a event.| The fix|
|00005260| 4c 65 6e 20 70 61 72 61 | 6d 65 74 65 72 20 69 73 |Len para|meter is|
|00005270| 20 74 68 65 20 6c 65 6e | 67 74 68 20 6f 66 20 74 | the len|gth of t|
|00005280| 68 65 20 63 6f 6e 66 69 | 72 6d 65 64 20 74 65 78 |he confi|rmed tex|
|00005290| 74 2e 20 50 69 6e 53 74 | 61 72 74 20 61 6e 64 20 |t. PinSt|art and |
|000052a0| 70 69 6e 45 6e 64 20 61 | 72 65 20 74 68 65 20 6f |pinEnd a|re the o|
|000052b0| 66 66 73 65 74 73 20 6f | 66 20 74 68 65 20 73 74 |ffsets o|f the st|
|000052c0| 61 72 74 20 61 6e 64 20 | 65 6e 64 20 6f 66 20 74 |art and |end of t|
|000052d0| 68 65 20 74 65 78 74 20 | 72 61 6e 67 65 20 74 68 |he text |range th|
|000052e0| 61 74 20 73 68 6f 75 6c | 64 20 62 65 20 69 6e 20 |at shoul|d be in |
|000052f0| 76 69 65 77 2e 0d 43 6f | 6d 6d 6f 6e 20 75 73 65 |view..Co|mmon use|
|00005300| 73 20 6f 66 20 74 68 65 | 20 70 6f 73 74 2d 75 70 |s of the| post-up|
|00005310| 64 61 74 65 20 72 6f 75 | 74 69 6e 65 20 61 72 65 |date rou|tine are|
|00005320| 3a 0d a5 09 61 64 6a 75 | 73 74 69 6e 67 20 73 63 |:...adju|sting sc|
|00005330| 72 6f 6c 6c 20 62 61 72 | 73 20 6f 72 20 69 6e 70 |roll bar|s or inp|
|00005340| 75 74 20 66 69 65 6c 64 | 20 77 69 64 74 68 73 20 |ut field| widths |
|00005350| 74 6f 20 74 68 65 20 77 | 69 64 74 68 20 61 6e 64 |to the w|idth and|
|00005360| 20 68 65 69 67 68 74 20 | 6f 66 20 74 68 65 20 74 | height |of the t|
|00005370| 65 78 74 2c 20 77 68 69 | 63 68 20 6d 61 79 20 68 |ext, whi|ch may h|
|00005380| 61 76 65 20 63 68 61 6e | 67 65 64 20 64 75 72 69 |ave chan|ged duri|
|00005390| 6e 67 20 65 64 69 74 69 | 6e 67 2c 0d a5 09 73 65 |ng editi|ng,...se|
|000053a0| 74 74 69 6e 67 20 61 20 | d2 6d 6f 64 69 66 69 65 |tting a |.modifie|
|000053b0| 64 d3 20 66 6c 61 67 20 | 66 6f 72 20 74 68 65 20 |d. flag |for the |
|000053c0| 64 6f 63 75 6d 65 6e 74 | 2c 0d a5 09 73 61 76 69 |document|,...savi|
|000053d0| 6e 67 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |ng infor|mation a|
|000053e0| 62 6f 75 74 20 74 68 65 | 20 74 65 78 74 20 62 65 |bout the| text be|
|000053f0| 69 6e 67 20 65 6e 74 65 | 72 65 64 20 66 6f 72 20 |ing ente|red for |
|00005400| 55 6e 64 6f 20 61 6e 64 | 20 52 65 64 6f 2c 0d a5 |Undo and| Redo,..|
|00005410| 09 6b 65 65 70 69 6e 67 | 20 74 72 61 63 6b 20 6f |.keeping| track o|
|00005420| 66 20 77 68 65 74 68 65 | 72 20 74 68 65 72 65 d5 |f whethe|r there.|
|00005430| 73 20 61 6e 20 61 63 74 | 69 76 65 20 69 6e 70 75 |s an act|ive inpu|
|00005440| 74 20 61 72 65 61 2e 0d | 43 61 6c 6c 69 6e 67 20 |t area..|Calling |
|00005450| 46 69 78 54 53 4d 44 6f | 63 75 6d 65 6e 74 0d 54 |FixTSMDo|cument.T|
|00005460| 68 65 20 46 69 78 54 53 | 4d 44 6f 63 75 6d 65 6e |he FixTS|MDocumen|
|00005470| 74 20 72 6f 75 74 69 6e | 65 20 73 68 6f 75 6c 64 |t routin|e should|
|00005480| 20 62 65 20 63 61 6c 6c | 65 64 20 77 68 65 6e 65 | be call|ed whene|
|00005490| 76 65 72 20 74 68 65 20 | 75 73 65 72 20 73 77 69 |ver the |user swi|
|000054a0| 74 63 68 65 73 20 66 72 | 6f 6d 20 74 79 70 69 6e |tches fr|om typin|
|000054b0| 67 20 74 6f 20 61 20 64 | 69 66 66 65 72 65 6e 74 |g to a d|ifferent|
|000054c0| 20 6b 69 6e 64 20 6f 66 | 20 61 63 74 69 76 69 74 | kind of| activit|
|000054d0| 79 20 74 68 61 74 20 6f | 70 65 72 61 74 65 73 20 |y that o|perates |
|000054e0| 6f 6e 20 74 68 65 20 74 | 65 78 74 2c 20 65 2e 67 |on the t|ext, e.g|
|000054f0| 2e 2c 20 69 6e 69 74 69 | 61 74 69 6e 67 20 61 6e |., initi|ating an|
|00005500| 20 65 64 69 74 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 | editing| command|
|00005510| 20 66 72 6f 6d 20 74 68 | 65 20 6d 65 6e 75 20 6f | from th|e menu o|
|00005520| 72 20 73 65 6c 65 63 74 | 69 6e 67 20 74 65 78 74 |r select|ing text|
|00005530| 2e 20 49 74 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 |. It sho|uld not |
|00005540| 62 65 20 63 61 6c 6c 65 | 64 20 66 6f 72 20 61 63 |be calle|d for ac|
|00005550| 74 69 6f 6e 73 20 74 68 | 61 74 20 77 6f 75 6c 64 |tions th|at would|
|00005560| 20 6e 6f 74 20 62 65 20 | 63 6f 6e 73 69 64 65 72 | not be |consider|
|00005570| 65 64 20 69 6e 74 65 72 | 72 75 70 74 69 6e 67 20 |ed inter|rupting |
|00005580| 61 20 74 79 70 69 6e 67 | 20 73 65 71 75 65 6e 63 |a typing| sequenc|
|00005590| 65 2c 20 65 2e 67 2e 2c | 20 72 65 73 69 7a 69 6e |e, e.g.,| resizin|
|000055a0| 67 20 6f 72 20 73 63 72 | 6f 6c 6c 69 6e 67 20 74 |g or scr|olling t|
|000055b0| 68 65 20 77 69 6e 64 6f | 77 2e 20 54 68 65 72 65 |he windo|w. There|
|000055c0| 20 61 72 65 20 73 6f 6d | 65 20 61 63 74 69 6f 6e | are som|e action|
|000055d0| 73 20 69 6e 20 62 65 74 | 77 65 65 6e 20 66 6f 72 |s in bet|ween for|
|000055e0| 20 77 68 69 63 68 20 77 | 65 20 64 6f 6e d5 74 20 | which w|e don.t |
|000055f0| 68 61 76 65 20 63 6c 65 | 61 72 20 67 75 69 64 65 |have cle|ar guide|
|00005600| 6c 69 6e 65 73 20 79 65 | 74 3b 20 69 6e 20 74 68 |lines ye|t; in th|
|00005610| 65 73 65 20 63 61 73 65 | 73 20 75 73 65 20 79 6f |ese case|s use yo|
|00005620| 75 72 20 62 65 73 74 20 | 6a 75 64 67 6d 65 6e 74 |ur best |judgment|
|00005630| 2e 0d 54 53 4d 54 45 20 | 77 69 6c 6c 20 69 6e 20 |..TSMTE |will in |
|00005640| 73 6f 6d 65 20 63 61 73 | 65 73 20 64 65 74 65 63 |some cas|es detec|
|00005650| 74 20 74 68 61 74 20 46 | 69 78 54 53 4d 44 6f 63 |t that F|ixTSMDoc|
|00005660| 75 6d 65 6e 74 20 6e 65 | 65 64 73 20 74 6f 20 62 |ument ne|eds to b|
|00005670| 65 20 63 61 6c 6c 65 64 | 20 61 6e 64 20 64 6f 20 |e called| and do |
|00005680| 69 74 20 66 6f 72 20 79 | 6f 75 2c 20 65 2e 67 2e |it for y|ou, e.g.|
|00005690| 2c 20 77 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |, when t|he user |
|000056a0| 63 6c 69 63 6b 73 20 69 | 6e 74 6f 20 61 20 70 61 |clicks i|nto a pa|
|000056b0| 72 74 20 6f 66 20 74 68 | 65 20 64 6f 63 75 6d 65 |rt of th|e docume|
|000056c0| 6e 74 20 6f 75 74 73 69 | 64 65 20 74 68 65 20 69 |nt outsi|de the i|
|000056d0| 6e 70 75 74 20 61 72 65 | 61 2e 20 49 6e 20 6d 6f |nput are|a. In mo|
|000056e0| 73 74 20 63 61 73 65 73 | 20 68 6f 77 65 76 65 72 |st cases| however|
|000056f0| 20 69 74 20 69 73 20 79 | 6f 75 72 20 72 65 73 70 | it is y|our resp|
|00005700| 6f 6e 73 69 62 69 6c 69 | 74 79 20 74 6f 20 63 61 |onsibili|ty to ca|
|00005710| 6c 6c 20 46 69 78 54 53 | 4d 44 6f 63 75 6d 65 6e |ll FixTS|MDocumen|
|00005720| 74 20 77 68 65 6e 20 61 | 70 70 72 6f 70 72 69 61 |t when a|ppropria|
|00005730| 74 65 3a 20 77 68 65 6e | 20 74 68 65 20 75 73 65 |te: when| the use|
|00005740| 72 20 73 65 6c 65 63 74 | 73 20 61 6e 20 65 64 69 |r select|s an edi|
|00005750| 74 69 6e 67 20 63 6f 6d | 6d 61 6e 64 20 66 72 6f |ting com|mand fro|
|00005760| 6d 20 74 68 65 20 6d 65 | 6e 75 2c 20 63 6c 6f 73 |m the me|nu, clos|
|00005770| 65 73 20 61 20 64 6f 63 | 75 6d 65 6e 74 2c 20 73 |es a doc|ument, s|
|00005780| 61 76 65 73 20 6f 72 20 | 70 72 69 6e 74 73 20 69 |aves or |prints i|
|00005790| 74 2e 0d 55 73 69 6e 67 | 20 54 53 4d 54 45 20 61 |t..Using| TSMTE a|
|000057a0| 6e 64 20 54 65 78 74 45 | 64 69 74 20 69 6e 20 41 |nd TextE|dit in A|
|000057b0| 64 64 69 74 69 6f 6e 20 | 74 6f 20 59 6f 75 72 20 |ddition |to Your |
|000057c0| 4f 77 6e 20 54 65 78 74 | 20 45 6e 67 69 6e 65 0d |Own Text| Engine.|
|000057d0| 49 66 20 79 6f 75 20 75 | 73 65 20 79 6f 75 72 20 |If you u|se your |
|000057e0| 6f 77 6e 20 74 65 78 74 | 20 65 6e 67 69 6e 65 20 |own text| engine |
|000057f0| 69 6e 20 61 64 64 69 74 | 69 6f 6e 20 74 6f 20 54 |in addit|ion to T|
|00005800| 65 78 74 45 64 69 74 2c | 20 79 6f 75 20 77 69 6c |extEdit,| you wil|
|00005810| 6c 20 68 61 76 65 20 74 | 6f 20 70 72 6f 76 69 64 |l have t|o provid|
|00005820| 65 20 79 6f 75 72 20 6f | 77 6e 20 41 70 70 6c 65 |e your o|wn Apple|
|00005830| 20 65 76 65 6e 74 20 68 | 61 6e 64 6c 65 72 73 20 | event h|andlers |
|00005840| 66 6f 72 20 74 68 65 20 | 54 65 78 74 20 53 65 72 |for the |Text Ser|
|00005850| 76 69 63 65 73 20 41 70 | 70 6c 65 20 65 76 65 6e |vices Ap|ple even|
|00005860| 74 73 20 74 6f 20 69 6d | 70 6c 65 6d 65 6e 74 20 |ts to im|plement |
|00005870| 69 6e 6c 69 6e 65 20 69 | 6e 70 75 74 20 66 6f 72 |inline i|nput for|
|00005880| 20 79 6f 75 72 20 65 6e | 67 69 6e 65 2e 20 48 6f | your en|gine. Ho|
|00005890| 77 65 76 65 72 2c 20 79 | 6f 75 20 63 61 6e 20 73 |wever, y|ou can s|
|000058a0| 74 69 6c 6c 20 75 73 65 | 20 54 53 4d 54 45 20 74 |till use| TSMTE t|
|000058b0| 6f 20 70 72 6f 76 69 64 | 65 20 69 6e 6c 69 6e 65 |o provid|e inline|
|000058c0| 20 69 6e 70 75 74 20 77 | 68 65 72 65 76 65 72 20 | input w|herever |
|000058d0| 79 6f 75 20 75 73 65 20 | 54 65 78 74 45 64 69 74 |you use |TextEdit|
|000058e0| 20 69 6e 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 | in your| applica|
|000058f0| 74 69 6f 6e 2e 0d 59 6f | 75 72 20 41 70 70 6c 65 |tion..Yo|ur Apple|
|00005900| 20 65 76 65 6e 74 20 68 | 61 6e 64 6c 65 72 73 20 | event h|andlers |
|00005910| 64 6f 6e d5 74 20 6e 65 | 65 64 20 74 6f 20 77 6f |don.t ne|ed to wo|
|00005920| 72 72 79 20 61 62 6f 75 | 74 20 54 65 78 74 45 64 |rry abou|t TextEd|
|00005930| 69 74 20 61 74 20 61 6c | 6c 2e 20 54 53 4d 54 45 |it at al|l. TSMTE|
|00005940| 20 69 6e 73 74 61 6c 6c | 73 20 69 74 73 20 65 76 | install|s its ev|
|00005950| 65 6e 74 20 68 61 6e 64 | 6c 65 72 73 20 69 6e 20 |ent hand|lers in |
|00005960| 74 68 65 20 73 79 73 74 | 65 6d 20 68 65 61 70 2c |the syst|em heap,|
|00005970| 20 73 6f 20 79 6f 75 20 | 63 61 6e 20 69 6e 73 74 | so you |can inst|
|00005980| 61 6c 6c 20 79 6f 75 72 | 20 68 61 6e 64 6c 65 72 |all your| handler|
|00005990| 73 20 69 6e 20 74 68 65 | 20 61 70 70 6c 69 63 61 |s in the| applica|
|000059a0| 74 69 6f 6e 20 68 65 61 | 70 2e 20 54 68 65 20 73 |tion hea|p. The s|
|000059b0| 75 70 70 6f 72 74 65 64 | 20 69 6e 74 65 72 66 61 |upported| interfa|
|000059c0| 63 65 20 74 79 70 65 20 | 74 68 61 74 20 79 6f 75 |ce type |that you|
|000059d0| 20 73 70 65 63 69 66 79 | 20 77 68 65 6e 20 79 6f | specify| when yo|
|000059e0| 75 20 63 72 65 61 74 65 | 20 61 20 54 53 4d 20 64 |u create| a TSM d|
|000059f0| 6f 63 75 6d 65 6e 74 20 | 69 73 20 75 73 65 64 20 |ocument |is used |
|00005a00| 74 6f 20 61 72 62 69 74 | 72 61 74 65 20 62 65 74 |to arbit|rate bet|
|00005a10| 77 65 65 6e 20 74 68 65 | 20 68 61 6e 64 6c 65 72 |ween the| handler|
|00005a20| 73 3a 20 66 6f 72 20 54 | 53 4d 20 64 6f 63 75 6d |s: for T|SM docum|
|00005a30| 65 6e 74 73 20 74 68 61 | 74 20 77 65 72 65 20 63 |ents tha|t were c|
|00005a40| 72 65 61 74 65 64 20 77 | 69 74 68 20 6b 54 53 4d |reated w|ith kTSM|
|00005a50| 54 45 49 6e 74 65 72 66 | 61 63 65 54 79 70 65 2c |TEInterf|aceType,|
|00005a60| 20 74 68 65 20 54 53 4d | 54 45 20 68 61 6e 64 6c | the TSM|TE handl|
|00005a70| 65 72 73 20 61 72 65 20 | 63 61 6c 6c 65 64 2c 20 |ers are |called, |
|00005a80| 66 6f 72 20 74 68 6f 73 | 65 20 74 68 61 74 20 20 |for thos|e that |
|00005a90| 77 65 72 65 20 63 72 65 | 61 74 65 64 20 77 69 74 |were cre|ated wit|
|00005aa0| 68 20 6b 54 65 78 74 53 | 65 72 76 69 63 65 2c 20 |h kTextS|ervice, |
|00005ab0| 79 6f 75 72 20 68 61 6e | 64 6c 65 72 73 2e 0d 54 |your han|dlers..T|
|00005ac0| 68 65 20 6f 6e 6c 79 20 | 74 68 69 6e 67 20 79 6f |he only |thing yo|
|00005ad0| 75 20 68 61 76 65 20 74 | 6f 20 77 6f 72 72 79 20 |u have t|o worry |
|00005ae0| 61 62 6f 75 74 20 69 73 | 20 77 68 61 74 20 74 6f |about is| what to|
|00005af0| 20 64 6f 20 69 66 20 74 | 68 65 20 54 65 78 74 20 | do if t|he Text |
|00005b00| 53 65 72 76 69 63 65 73 | 20 4d 61 6e 61 67 65 72 |Services| Manager|
|00005b10| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 2c 20 62 | is avai|lable, b|
|00005b20| 75 74 20 6e 6f 74 20 54 | 53 4d 54 45 2c 20 73 6f |ut not T|SMTE, so|
|00005b30| 20 74 68 61 74 20 79 6f | 75 20 63 61 6e 20 70 72 | that yo|u can pr|
|00005b40| 6f 76 69 64 65 20 69 6e | 6c 69 6e 65 20 69 6e 70 |ovide in|line inp|
|00005b50| 75 74 20 66 6f 72 20 79 | 6f 75 72 20 65 6e 67 69 |ut for y|our engi|
|00005b60| 6e 65 2c 20 62 75 74 20 | 6e 6f 74 20 66 6f 72 20 |ne, but |not for |
|00005b70| 54 65 78 74 45 64 69 74 | 2e 20 49 6e 20 74 68 69 |TextEdit|. In thi|
|00005b80| 73 20 63 61 73 65 20 79 | 6f 75 20 77 61 6e 74 20 |s case y|ou want |
|00005b90| 74 6f 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 61 |to make |sure tha|
|00005ba0| 74 20 69 6e 6c 69 6e 65 | 20 69 6e 70 75 74 20 69 |t inline| input i|
|00005bb0| 73 20 75 73 65 64 20 77 | 68 65 6e 65 76 65 72 20 |s used w|henever |
|00005bc0| 79 6f 75 72 20 65 6e 67 | 69 6e 65 20 69 73 20 61 |your eng|ine is a|
|00005bd0| 63 74 69 76 65 2c 20 62 | 75 74 20 74 68 61 74 20 |ctive, b|ut that |
|00005be0| 61 20 66 6c 6f 61 74 69 | 6e 67 20 69 6e 70 75 74 |a floati|ng input|
|00005bf0| 20 77 69 6e 64 6f 77 20 | 69 73 20 6d 61 64 65 20 | window |is made |
|00005c00| 61 76 61 69 6c 61 62 6c | 65 20 77 68 65 6e 65 76 |availabl|e whenev|
|00005c10| 65 72 20 61 20 54 65 78 | 74 45 64 69 74 20 66 69 |er a Tex|tEdit fi|
|00005c20| 65 6c 64 20 69 73 20 61 | 63 74 69 76 65 20 28 77 |eld is a|ctive (w|
|00005c30| 69 74 68 6f 75 74 20 74 | 68 65 20 66 6c 6f 61 74 |ithout t|he float|
|00005c40| 69 6e 67 20 69 6e 70 75 | 74 20 77 69 6e 64 6f 77 |ing inpu|t window|
|00005c50| 20 75 73 65 72 73 20 77 | 6f 75 6c 64 20 6e 6f 74 | users w|ould not|
|00005c60| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 74 79 70 65 | be able| to type|
|00005c70| 20 61 6e 79 74 68 69 6e | 67 20 6d 65 61 6e 69 6e | anythin|g meanin|
|00005c80| 67 66 75 6c 20 69 6e 20 | 61 20 32 2d 62 79 74 65 |gful in |a 2-byte|
|00005c90| 20 73 63 72 69 70 74 29 | 2e 20 59 6f 75 20 63 61 | script)|. You ca|
|00005ca0| 6e 20 64 6f 20 74 68 69 | 73 20 62 79 20 63 61 6c |n do thi|s by cal|
|00005cb0| 6c 69 6e 67 20 55 73 65 | 49 6e 70 75 74 57 69 6e |ling Use|InputWin|
|00005cc0| 64 6f 77 20 77 68 65 6e | 65 76 65 72 20 79 6f 75 |dow when|ever you|
|00005cd0| 20 61 63 74 69 76 61 74 | 65 20 6f 72 20 64 65 61 | activat|e or dea|
|00005ce0| 63 74 69 76 61 74 65 20 | 61 20 54 65 78 74 45 64 |ctivate |a TextEd|
|00005cf0| 69 74 20 72 65 63 6f 72 | 64 20 d0 20 68 65 72 65 |it recor|d . here|
|00005d00| 20 69 73 20 73 61 6d 70 | 6c 65 20 63 6f 64 65 20 | is samp|le code |
|00005d10| 66 6f 72 20 61 63 74 69 | 76 61 74 69 6f 6e 3a 0d |for acti|vation:.|
|00005d20| 69 66 20 28 64 6f 63 2d | 3e 64 6f 63 54 53 4d 44 |if (doc-|>docTSMD|
|00005d30| 6f 63 20 21 3d 20 6e 69 | 6c 29 0d 09 43 68 65 63 |oc != ni|l)..Chec|
|00005d40| 6b 45 72 72 6f 72 28 41 | 63 74 69 76 61 74 65 54 |kError(A|ctivateT|
|00005d50| 53 4d 44 6f 63 75 6d 65 | 6e 74 28 64 6f 63 2d 3e |SMDocume|nt(doc->|
|00005d60| 64 6f 63 54 53 4d 44 6f | 63 29 29 3b 0d 65 6c 73 |docTSMDo|c));.els|
|00005d70| 65 0d 09 43 68 65 63 6b | 45 72 72 6f 72 28 55 73 |e..Check|Error(Us|
|00005d80| 65 49 6e 70 75 74 57 69 | 6e 64 6f 77 28 6e 69 6c |eInputWi|ndow(nil|
|00005d90| 2c 20 74 72 75 65 29 29 | 3b 0d 4d 6f 72 65 20 49 |, true))|;.More I|
|00005da0| 6e 6c 69 6e 65 20 49 6e | 70 75 74 20 41 64 76 69 |nline In|put Advi|
|00005db0| 63 65 0d 54 68 69 73 20 | 73 65 63 74 69 6f 6e 20 |ce.This |section |
|00005dc0| 63 6f 6e 74 61 69 6e 73 | 20 73 6f 6d 65 20 69 6e |contains| some in|
|00005dd0| 66 6f 72 6d 61 74 69 6f | 6e 20 74 68 61 74 20 69 |formatio|n that i|
|00005de0| 73 20 6e 6f 74 20 73 70 | 65 63 69 66 69 63 20 74 |s not sp|ecific t|
|00005df0| 6f 20 54 53 4d 54 45 2c | 20 62 75 74 20 61 70 70 |o TSMTE,| but app|
|00005e00| 6c 69 65 73 20 74 6f 20 | 61 6c 6c 20 61 70 70 6c |lies to |all appl|
|00005e10| 69 63 61 74 69 6f 6e 73 | 20 74 68 61 74 20 75 73 |ications| that us|
|00005e20| 65 20 74 68 65 20 54 65 | 78 74 20 53 65 72 76 69 |e the Te|xt Servi|
|00005e30| 63 65 73 20 4d 61 6e 61 | 67 65 72 20 69 6e 20 61 |ces Mana|ger in a|
|00005e40| 6e 79 20 66 6f 72 6d 2e | 20 49 74 20 73 68 6f 77 |ny form.| It show|
|00005e50| 73 20 77 6f 72 6b 61 72 | 6f 75 6e 64 73 20 66 6f |s workar|ounds fo|
|00005e60| 72 20 73 6f 6d 65 20 75 | 6e 65 78 70 65 63 74 65 |r some u|nexpecte|
|00005e70| 64 20 66 65 61 74 75 72 | 65 73 20 28 77 65 20 77 |d featur|es (we w|
|00005e80| 6f 6e d5 74 20 75 73 65 | 20 65 6e 74 6f 6d 6f 6c |on.t use| entomol|
|00005e90| 6f 67 69 63 61 6c 20 74 | 65 72 6d 69 6e 6f 6c 6f |ogical t|erminolo|
|00005ea0| 67 79 20 68 65 72 65 c9 | 29 20 69 6e 20 74 68 65 |gy here.|) in the|
|00005eb0| 20 54 65 78 74 20 53 65 | 72 76 69 63 65 73 20 4d | Text Se|rvices M|
|00005ec0| 61 6e 61 67 65 72 20 61 | 6e 64 20 66 69 72 73 74 |anager a|nd first|
|00005ed0| 2d 67 65 6e 65 72 61 74 | 69 6f 6e 20 69 6e 70 75 |-generat|ion inpu|
|00005ee0| 74 20 6d 65 74 68 6f 64 | 73 20 77 72 69 74 74 65 |t method|s writte|
|00005ef0| 6e 20 66 6f 72 20 69 74 | 2e 20 53 6f 6d 65 20 6f |n for it|. Some o|
|00005f00| 66 20 74 68 6f 73 65 20 | 75 6e 65 78 70 65 63 74 |f those |unexpect|
|00005f10| 65 64 20 66 65 61 74 75 | 72 65 73 20 61 72 65 20 |ed featu|res are |
|00005f20| 65 78 70 65 63 74 65 64 | 20 74 6f 20 62 65 20 6f |expected| to be o|
|00005f30| 72 20 68 61 76 65 20 61 | 6c 72 65 61 64 79 20 62 |r have a|lready b|
|00005f40| 65 65 6e 20 64 69 73 63 | 6f 6e 74 69 6e 75 65 64 |een disc|ontinued|
|00005f50| 20 69 6e 20 6e 65 77 65 | 72 20 76 65 72 73 69 6f | in newe|r versio|
|00005f60| 6e 73 2e 0d 49 6e 63 6f | 72 72 65 63 74 20 44 65 |ns..Inco|rrect De|
|00005f70| 63 6c 61 72 61 74 69 6f | 6e 20 69 6e 20 54 65 78 |claratio|n in Tex|
|00005f80| 74 53 65 72 76 69 63 65 | 73 2e 70 0d 54 68 65 20 |tService|s.p.The |
|00005f90| 54 65 78 74 20 53 65 72 | 76 69 63 65 73 20 69 6e |Text Ser|vices in|
|00005fa0| 74 65 72 66 61 63 65 20 | 66 69 6c 65 20 54 65 78 |terface |file Tex|
|00005fb0| 74 53 65 72 76 69 63 65 | 73 2e 70 20 74 68 61 74 |tService|s.p that|
|00005fc0| 20 69 73 20 63 75 72 72 | 65 6e 74 6c 79 20 64 69 | is curr|ently di|
|00005fd0| 73 74 72 69 62 75 74 65 | 64 20 6f 6e 20 45 2e 54 |stribute|d on E.T|
|00005fe0| 2e 4f 2e 20 31 32 20 61 | 6e 64 20 74 68 65 20 4e |.O. 12 a|nd the N|
|00005ff0| 6f 76 65 6d 62 65 72 20 | 31 39 39 33 20 44 65 76 |ovember |1993 Dev|
|00006000| 65 6c 6f 70 65 72 20 43 | 44 20 63 6f 6e 74 61 69 |eloper C|D contai|
|00006010| 6e 73 20 61 6e 20 69 6e | 63 6f 72 72 65 63 74 20 |ns an in|correct |
|00006020| 64 65 63 6c 61 72 61 74 | 69 6f 6e 20 66 6f 72 20 |declarat|ion for |
|00006030| 4e 65 77 54 53 4d 44 6f | 63 75 6d 65 6e 74 2e 20 |NewTSMDo|cument. |
|00006040| 54 68 65 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |The decl|aration |
|00006050| 73 68 6f 75 6c 64 20 72 | 65 61 64 3a 0d 46 75 6e |should r|ead:.Fun|
|00006060| 63 74 69 6f 6e 20 4e 65 | 77 54 53 4d 44 6f 63 75 |ction Ne|wTSMDocu|
|00006070| 6d 65 6e 74 28 6e 75 6d | 4f 66 49 6e 74 65 72 66 |ment(num|OfInterf|
|00006080| 61 63 65 3a 20 49 6e 74 | 65 67 65 72 3b 0d 09 09 |ace: Int|eger;...|
|00006090| 56 41 52 20 73 75 70 70 | 6f 72 74 65 64 49 6e 74 |VAR supp|ortedInt|
|000060a0| 65 72 66 61 63 65 54 79 | 70 65 73 3a 20 49 6e 74 |erfaceTy|pes: Int|
|000060b0| 65 72 66 61 63 65 54 79 | 70 65 4c 69 73 74 3b 20 |erfaceTy|peList; |
|000060c0| 56 41 52 20 69 64 6f 63 | 49 44 3a 20 54 53 4d 44 |VAR idoc|ID: TSMD|
|000060d0| 6f 63 75 6d 65 6e 74 49 | 44 3b 20 09 09 72 65 66 |ocumentI|D; ..ref|
|000060e0| 43 6f 6e 3a 20 4c 6f 6e | 67 69 6e 74 29 3a 20 4f |Con: Lon|gint): O|
|000060f0| 53 45 72 72 3b 0d 09 49 | 4e 4c 49 4e 45 20 24 33 |SErr;..I|NLINE $3|
|00006100| 30 33 43 2c 20 24 30 30 | 30 30 2c 20 24 41 41 35 |03C, $00|00, $AA5|
|00006110| 34 3b 0d 57 69 74 68 6f | 75 74 20 74 68 65 20 6b |4;.Witho|ut the k|
|00006120| 65 79 77 6f 72 64 20 d2 | 76 61 72 d3 20 69 6e 20 |eyword .|var. in |
|00006130| 66 72 6f 6e 74 20 6f 66 | 20 d2 73 75 70 70 6f 72 |front of| .suppor|
|00006140| 74 65 64 49 6e 74 65 72 | 66 61 63 65 54 79 70 65 |tedInter|faceType|
|00006150| 73 d3 2c 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |s., your| applica|
|00006160| 74 69 6f 6e 20 77 69 6c | 6c 20 65 6e 63 6f 75 6e |tion wil|l encoun|
|00006170| 74 65 72 20 61 20 62 75 | 73 20 65 72 72 6f 72 20 |ter a bu|s error |
|00006180| 69 6e 20 4e 65 77 54 53 | 4d 44 6f 63 75 6d 65 6e |in NewTS|MDocumen|
|00006190| 74 2e 20 53 6f 2c 20 67 | 6f 20 69 6e 20 61 6e 64 |t. So, g|o in and|
|000061a0| 20 61 64 64 20 74 68 65 | 20 6b 65 79 77 6f 72 64 | add the| keyword|
|000061b0| 20 d2 76 61 72 d3 20 69 | 66 20 69 74 d5 73 20 6e | .var. i|f it.s n|
|000061c0| 6f 74 20 74 68 65 72 65 | 2e 0d 54 68 65 20 64 65 |ot there|..The de|
|000061d0| 63 6c 61 72 61 74 69 6f | 6e 20 66 6f 72 20 4e 65 |claratio|n for Ne|
|000061e0| 77 54 53 4d 44 6f 63 75 | 6d 65 6e 74 20 69 6e 20 |wTSMDocu|ment in |
|000061f0| 54 65 78 74 53 65 72 76 | 69 63 65 73 2e 68 20 69 |TextServ|ices.h i|
|00006200| 73 20 63 6f 72 72 65 63 | 74 2e 0d 44 65 6c 65 74 |s correc|t..Delet|
|00006210| 65 54 53 4d 44 6f 63 75 | 6d 65 6e 74 20 55 73 65 |eTSMDocu|ment Use|
|00006220| 73 20 44 69 73 70 6f 73 | 65 64 20 48 61 6e 64 6c |s Dispos|ed Handl|
|00006230| 65 0d 49 66 20 61 20 54 | 53 4d 44 6f 63 75 6d 65 |e.If a T|SMDocume|
|00006240| 6e 74 20 69 73 20 64 65 | 6c 65 74 65 64 20 77 69 |nt is de|leted wi|
|00006250| 74 68 6f 75 74 20 62 65 | 69 6e 67 20 64 65 61 63 |thout be|ing deac|
|00006260| 74 69 76 61 74 65 64 20 | 66 69 72 73 74 2c 20 74 |tivated |first, t|
|00006270| 68 65 20 72 6f 75 74 69 | 6e 65 20 44 65 6c 65 74 |he routi|ne Delet|
|00006280| 65 54 53 4d 44 6f 63 75 | 6d 65 6e 74 20 6d 61 79 |eTSMDocu|ment may|
|00006290| 20 72 65 75 73 65 20 61 | 20 68 61 6e 64 6c 65 20 | reuse a| handle |
|000062a0| 74 68 61 74 20 69 74 20 | 68 61 73 20 61 6c 72 65 |that it |has alre|
|000062b0| 61 64 79 20 64 69 73 70 | 6f 73 65 64 20 6f 66 2e |ady disp|osed of.|
|000062c0| 20 49 74 20 64 65 72 65 | 66 65 72 65 6e 63 65 73 | It dere|ferences|
|000062d0| 20 74 68 69 73 20 68 61 | 6e 64 6c 65 20 61 6e 64 | this ha|ndle and|
|000062e0| 20 77 72 69 74 65 73 20 | 61 20 73 69 6e 67 6c 65 | writes |a single|
|000062f0| 20 62 79 74 65 2e 20 54 | 68 69 73 20 6d 61 79 20 | byte. T|his may |
|00006300| 65 76 65 6e 74 75 61 6c | 6c 79 20 63 61 75 73 65 |eventual|ly cause|
|00006310| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00006320| 6e 20 74 6f 20 63 72 61 | 73 68 20 6d 79 73 74 65 |n to cra|sh myste|
|00006330| 72 69 6f 75 73 6c 79 2e | 0d 57 6f 72 6b 61 72 6f |riously.|.Workaro|
|00006340| 75 6e 64 3a 20 6d 61 6b | 65 20 73 75 72 65 20 74 |und: mak|e sure t|
|00006350| 6f 20 64 65 61 63 74 69 | 76 61 74 65 20 65 61 63 |o deacti|vate eac|
|00006360| 68 20 54 53 4d 20 64 6f | 63 75 6d 65 6e 74 20 75 |h TSM do|cument u|
|00006370| 73 69 6e 67 20 44 65 61 | 63 74 69 76 61 74 65 54 |sing Dea|ctivateT|
|00006380| 53 4d 44 6f 63 75 6d 65 | 6e 74 20 62 65 66 6f 72 |SMDocume|nt befor|
|00006390| 65 20 63 61 6c 6c 69 6e | 67 20 44 65 6c 65 74 65 |e callin|g Delete|
|000063a0| 54 53 4d 44 6f 63 75 6d | 65 6e 74 20 74 6f 20 64 |TSMDocum|ent to d|
|000063b0| 65 6c 65 74 65 20 69 74 | 2e 20 49 66 20 54 53 4d |elete it|. If TSM|
|000063c0| 54 45 20 63 61 6c 6c 73 | 20 44 65 6c 65 74 65 54 |TE calls| DeleteT|
|000063d0| 53 4d 44 6f 63 75 6d 65 | 6e 74 20 66 6f 72 20 61 |SMDocume|nt for a|
|000063e0| 20 54 53 4d 20 64 6f 63 | 75 6d 65 6e 74 20 69 74 | TSM doc|ument it|
|000063f0| 20 63 72 65 61 74 65 64 | 20 66 6f 72 20 61 20 6d | created| for a m|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.